如何在 JBoss 中配置 IBM IMS 连接器

发布于 2024-07-13 08:07:30 字数 668 浏览 5 评论 0原文

我有 IMS 连接器 RAR 文件。 将其放置在 JBOSS_INSTALL/server/default/deploy 目录中。 创建了一个 ims-ds.xml 文件并将其放置在同一位置。 看起来好像正在部署并显示以下消息:

21:40:02,800 INFO [RARDeployment] 存在必需的许可条款,请在 .../deploy/ims225Connector.rar/ 中查看 META-INF/ra.xml

但随后它给出以下内容错误:

--- MBean 是问题的根本原因 --- 对象名称:jboss.web.deployment:war=MHAccountDetailsAXIS.war,id=258164183 状态:失败 原因:org.jboss.deployment.DeploymentException:部署期间出错; - 嵌套的 throwable: (javax.naming.NamingException: 资源引用: eis/IMSCZ 没有有效的 JNDI 绑定。检查 jboss-web/resource-ref。)

对象名称: jboss.jca:service=RARDeployment,name=IMS 连接器爪哇 状态:尚未安装 取决于我: jboss.jca:service=NoTxDS,name=eis/IMSCZ

I have the IMS Connector RAR file. Placed it inside JBOSS_INSTALL/server/default/deploy directory. Created a ims-ds.xml file and also placed in the same location. It appears as if it is deploying with this message:

21:40:02,800 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/ims225Connector.rar/

But then it gives the following error:

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.web.deployment:war=MHAccountDetailsAXIS.war,id=258164183
State: FAILED
Reason: org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: eis/IMSCZ has no valid JNDI binding. Check the jboss-web/resource-ref.)

ObjectName: jboss.jca:service=RARDeployment,name=IMS Connector for Java
State: NOTYETINSTALLED
Depends On Me:
jboss.jca:service=NoTxDS,name=eis/IMSCZ

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

﹂绝世的画 2024-07-20 08:07:30

添加了 jboss-web.xml,它提供了 JNDI 和资源引用名称之间的映射,最终成功了。

Added jboss-web.xml that provides a mapping between JNDI and resource-ref name and finally got it going.

错爱 2024-07-20 08:07:30

更正 IMS-ds.xml 文件后能够继续进行。 接下来我得到:
无法在对象“com.ibm.connector2.ims.ico.IMSManagedConnectionFactory@0”上调用 setter 方法“public void com.ibm.connector2.ims.ico.IMSManagedConnectionFactory.setMFSXMIRepositoryID(java.lang.String)”; - 嵌套的 throwable: (java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.resource.ResourceSet)

接下来我下载 eclipse jar 文件:org.eclipse.emf.common_2.4.0.v200808251517.jar 和
org.eclipse.emf.ecore_2.4.1.v200808251517.jar 并将其放置在与 IMS RAR 相同的位置并克服该错误。

我看到 JNDI 正在建立:
12:02:28,082 INFO [ConnectionFactoryBindingService] 将 ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=eis/IMSCZ' 绑定到 JNDI 名称 'java:eis/IMSCZ'

但随后我收到此错误:
12:02:28,941 警告 [ServiceController] 启动服务 jboss.web.deployment 时出现问题:war=MHAccountDetailsAXIS.war,id=1972990498
org.jboss.deployment.DeploymentException:部署期间出错; - 嵌套的 throwable: (javax.naming.NamingException: resources-ref: eis/IMSCZ 没有有效的 JNDI 绑定。检查 jboss-web/resource-ref。)

我还应该定义什么来实现此目的?

Was able to proceed further after correcting the IMS-ds.xml file. Next I got:
Unable to invoke setter method 'public void com.ibm.connector2.ims.ico.IMSManagedConnectionFactory.setMFSXMIRepositoryID(java.lang.String)' on object 'com.ibm.connector2.ims.ico.IMSManagedConnectionFactory@0'; - nested throwable: (java.lang.NoClassDefFoundError: org.eclipse.emf.ecore.resource.ResourceSet)

Next I download the eclipse jar files:org.eclipse.emf.common_2.4.0.v200808251517.jar and
org.eclipse.emf.ecore_2.4.1.v200808251517.jar and place in the same location as the IMS RAR and get past that error.

I see the JNDI being established:
12:02:28,082 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=eis/IMSCZ' to JNDI name 'java:eis/IMSCZ'

But then I get this error:
12:02:28,941 WARN [ServiceController] Problem starting service jboss.web.deployment:war=MHAccountDetailsAXIS.war,id=1972990498
org.jboss.deployment.DeploymentException: Error during deploy; - nested throwable: (javax.naming.NamingException: resource-ref: eis/IMSCZ has no valid JNDI binding. Check the jboss-web/resource-ref.)

What else should I define to get this going?

压抑⊿情绪 2024-07-20 08:07:30

我能够在 JBOSS 上配置 IBM IMS TM 资源适配器。 您可以在安装时使用其中一种方法。

A。 使用命令提示符

B. 使用 Web 控制台

localhost:9990/console

c. 更改standalone.xml 配置文件。

我使用第三种方法作为其他方法参考链接
配置 IMS TM 资源适配器

这里是配置步骤 1 的步骤

:使用以下链接下载 IMS TM RA(您首先需要向 IBM 注册才能下载适配器)
IMS TM 资源适配器

步骤 2:将 ico1322.zip(您从步骤 1 下载的)解压缩到以下文件夹中。

jboss-as-7.1.1.Final\modules

注意:一些 IMS 适配器已经是 JBOSS 安装的一部分,因此请交叉检查默认情况下该适配器是否已经可用。

步骤 3:编辑 jboss-as-7.1.1.Final\standalone\configuration\standalone.xml 文件。

编辑下面的部分并添加以下 XML

<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">

替换占位符 ${XXXXXXXXX}

<resource-adapters>
            <resource-adapter id="ims1322.rar">
            <archive>ims1321.rar</archive>
              <!--  <module slot="main" id="com.ibm.connector2"/>-->
                <transaction-support>LocalTransaction</transaction-support>
                <config-property name="threadContextPropagationRequired">
                    false
                </config-property>
                <config-property name="adapterID">
                    IMSTM
                </config-property>
                <config-property name="enableHASupport">
                    true
                </config-property>
                <connection-definitions>
                    <connection-definition class-name="com.ibm.connector2.ims.ico.IMSManagedConnectionFactory" jndi-name="java:jboss/ims/DAS_IMS_CONNECTION_FACTORY" enabled="true" use-java-context="false" pool-name="java:jboss/ims/DAS_IMS_CONNECTION_FACTORY">
                        <config-property name="CM0Dedicated">
                            FALSE
                        </config-property>
                        <config-property name="SSLEnabled">
                            FALSE
                        </config-property>
                        <config-property name="SSLEncryptionType">
                            Weak
                        </config-property>
                        <config-property name="DataStoreName">
                           ${XXXXXXXXX}
                        </config-property>
                        <config-property name="Password">
                         ${XXXXXXXXX}
                        </config-property>
                        <config-property name="UserName">
                         ${XXXXXXXXX} 
                        </config-property>
                        <config-property name="PortNumber">
                             ${XXXXXXXXX}
                        </config-property>
                        <config-property name="TraceLevel">
                            1
                        </config-property>
                        <config-property name="HostName">
                             ${XXXXXXXXX}
                        </config-property>
                        <pool>
                            <min-pool-size>0</min-pool-size>
                            <max-pool-size>10</max-pool-size>
                            <prefill>false</prefill>
                            <use-strict-min>false</use-strict-min>
                            <flush-strategy>FailingConnectionOnly</flush-strategy>
                        </pool>
                        <security>
                            <application/>
                        </security>
                        <validation>
                            <background-validation>false</background-validation>
                        </validation>
                   </connection-definition>
                </connection-definitions>
            </resource-adapter>
            </resource-adapters>

步骤 4:

 <resource-adapter id="ims1322.rar">

上面的标签应该具有与我们在步骤中下载的相同的 rar(如果您解压 ims1322.zip 文件,您将找到 ims1322.rar 文件) 1

步骤5:以独立模式启动服务器。

jboss-as-7.1.1.Final\bin>standalone.bat

步骤6:检查控制台是否在配置文件中安装了适配器 --> 资源适配器链接

localhost:9990/console

I am able to configure IBM IMS TM Resource adapter on JBOSS. You can use one of the method in installation.

a. Using command prompt

b. Use web console

localhost:9990/console

c. Changing standalone.xml configuration file.

I used 3rd approach for other approach refer link
Configuring IMS TM resource adapter

Here are the steps to configure

Sptep 1: Download IMS TM RA using below link (You first need to register with IBM to be able to download adapter)
IMS TM Resource Adapter

Step 2: Extract the ico1322.zip (which you downloaded from step 1) in below folder.

jboss-as-7.1.1.Final\modules

Note: Some of the IMS adapter are already part of JBOSS installation, So please cross check whether the adapter is already available by default.

Step 3: Edit jboss-as-7.1.1.Final\standalone\configuration\standalone.xml file.

Edit below section and add following XML

<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">

Replace the place holders ${XXXXXXXXX}

<resource-adapters>
            <resource-adapter id="ims1322.rar">
            <archive>ims1321.rar</archive>
              <!--  <module slot="main" id="com.ibm.connector2"/>-->
                <transaction-support>LocalTransaction</transaction-support>
                <config-property name="threadContextPropagationRequired">
                    false
                </config-property>
                <config-property name="adapterID">
                    IMSTM
                </config-property>
                <config-property name="enableHASupport">
                    true
                </config-property>
                <connection-definitions>
                    <connection-definition class-name="com.ibm.connector2.ims.ico.IMSManagedConnectionFactory" jndi-name="java:jboss/ims/DAS_IMS_CONNECTION_FACTORY" enabled="true" use-java-context="false" pool-name="java:jboss/ims/DAS_IMS_CONNECTION_FACTORY">
                        <config-property name="CM0Dedicated">
                            FALSE
                        </config-property>
                        <config-property name="SSLEnabled">
                            FALSE
                        </config-property>
                        <config-property name="SSLEncryptionType">
                            Weak
                        </config-property>
                        <config-property name="DataStoreName">
                           ${XXXXXXXXX}
                        </config-property>
                        <config-property name="Password">
                         ${XXXXXXXXX}
                        </config-property>
                        <config-property name="UserName">
                         ${XXXXXXXXX} 
                        </config-property>
                        <config-property name="PortNumber">
                             ${XXXXXXXXX}
                        </config-property>
                        <config-property name="TraceLevel">
                            1
                        </config-property>
                        <config-property name="HostName">
                             ${XXXXXXXXX}
                        </config-property>
                        <pool>
                            <min-pool-size>0</min-pool-size>
                            <max-pool-size>10</max-pool-size>
                            <prefill>false</prefill>
                            <use-strict-min>false</use-strict-min>
                            <flush-strategy>FailingConnectionOnly</flush-strategy>
                        </pool>
                        <security>
                            <application/>
                        </security>
                        <validation>
                            <background-validation>false</background-validation>
                        </validation>
                   </connection-definition>
                </connection-definitions>
            </resource-adapter>
            </resource-adapters>

Step 4:

 <resource-adapter id="ims1322.rar">

The above tag should have the same rar(If you unzip the ims1322.zip file, you will find ims1322.rar file) which we had downloaded in step 1

Step 5: Start the server in standalone mode.

jboss-as-7.1.1.Final\bin>standalone.bat

Step 6: Check console whether the adapter is installed in profile --> Resource adapter link

localhost:9990/console

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文