Websphere MQ 连接定义的 Wildfly 资源适配器

Wildfly resource adapter for Websphere MQ connection definition

我正在尝试从 Wildfly 9 连接到 Websphere MQ,为此我在独立模式下添加了一个资源适配器-full.xml

我收到这个错误:

16:03:58,387 WARN [org.jboss.as.connector.deployers.RADeployer] (MSC service thread 1-1) IJ020017: Invalid archive: file:/C:/JAVA/WF9/wildfly-9.0.0.Final/standalone/tmp/vfs/temp/temp755b6e876dab356a/ content-5c7db729978cd59e/contents/ 16:03:58,389 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-4) IJ020001: Required license terms for file:/C:/JAVA/WF9/wildfly-9.0.0.Final/standalone/tmp/vfs/temp/temp755b 6e876dab356a/content-5c7db729978cd59e/contents/ 16:03:58,395 WARN [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-4) IJ020009: Invalid connection definition with class-name: javax.jms.ConnectionFactory 16:03:58,399 WARN [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-4) IJ020009: Invalid connection definition with class-name: javax.jms.ConnectionFactory 16:03:58,400 WARN [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-4) IJ020009: Invalid connection definition with class-name: javax.jms.ConnectionFactory 16:03:58,448 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-4) WFLYJCA0006: Registered admin object at java:jboss/contm/ToConTM 16:03:58,451 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-4) WFLYJCA0006: Registered admin object at java:jboss/contm/FromConTM 16:03:58,452 WARN [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-4) IJ020017: Invalid archive: file:/C:/JAVA/WF9/wildfly-9.0.0.Final/standalone/tmp/vfs/temp/temp755b6e876dab35 6a/content-5c7db729978cd59e/contents/ 16:03:58,454 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-4) IJ020002: Deployed: file:/C:/JAVA/WF9/wildfly-9.0.0.Final/standalone/tmp/vfs/temp/temp755b6e876dab356a/cont ent-5c7db729978cd59e/contents/ 16:03:58,455 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-4) WFLYJCA0002: Bound JCA AdminObject [java:jboss/contm/ToConTM] 16:03:58,455 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-5) WFLYJCA0002: Bound JCA AdminObject [java:jboss/contm/FromConTM]

我的资源适配器如下所示:

<resource-adapter id="wmq.jmsra.rar">
  <archive>
  wmq.jmsra.rar
  </archive>
  <connection-definitions>
  <connection-definition class-name="javax.jms.ConnectionFactory" jndi-name="java:/contm/jmsConnectionFactory" pool-name="jmsConnectionFactory">             

  </connection-definition>
  </connection-definitions>
  <admin-objects>
  <admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:jboss/contm/FromConTM" use-java-context="true" pool-name="FromConTM">
  <config-property name="baseQueueManagerName">
  devel.queue.manager
  </config-property>
  <config-property name="baseQueueName">
  NewQueue2
  </config-property>
  </admin-object>
  <admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:jboss/contm/ToConTM" use-java-context="true" pool-name="ToConTM">
  <config-property name="baseQueueManagerName">
  devel.queue.manager
  </config-property>
  <config-property name="baseQueueName">
  NewQueue1
  </config-property>
  </admin-object>
  </admin-objects>
  </resource-adapter>

我添加了配置属性并删除了它们添加了不同的属性,这些属性可能看起来很有用,比如 use-java-context="true" pool-name="jmsConnectionFactory" use-ccm="true" 删除它们或使它们为假,更改了 jndi 名称但它一直给我相同的 .我在 standalone-full.xml 中还有其他连接定义,但它们都已正确绑定,没有问题。

谁能看出我在这种情况下遗漏了什么。如果我使用 XATransaction 和 class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl"

没问题..但上面那个不行。

提前致谢

我得到的原始配置很旧,可能在当时有效。对于 WF9,我的设置需要如下所示

<connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" jndi-name="java:/ctm/ConnectionFactory" use-java-context="true" pool-name="ConnectionFactory">

对此进行了测试,它像以前一样工作正常javax.jms.ConnectionFactory