我已经正确部署了mdb并且服务器日志说我已经成功部署但是我仍然无法在jboss容器中使用来自websphere mq的消息
我的mdb中的激活配置
@MessageDriven(
activationConfig = {
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "hostName", propertyValue = "ip_address"),
@ActivationConfigProperty(propertyName = "port", propertyValue = "port"),
@ActivationConfigProperty(propertyName = "channel", propertyValue = "JAVA.CHANNEL"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "Q_PVF_BACKEND"),
@ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
@ActivationConfigProperty(propertyName = "queueManager", propertyValue = "TEST_MRIS_IIB")
})
@ResourceAdapter(value="wmq.jmsra.rar")
Jboss服务器日志
08:40:38,188 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "ikvEAR.ear"
08:40:38,192 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "ikvEJB.jar"
08:40:38,208 INFO [org.jboss.as.ejb3] (MSC service thread 1-2) JBAS014142: Started message driven bean 'mdb' with 'wmq.jmsra' resource adapter
08:40:38,277 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "ikvEAR.ear"
独立-full.xml
...
<mdb>
<resource-adapter-ref resource-adapter-name="wmq.jmsra.rar"/>
<bean-instance-pool-ref pool-name="mdb-wmq-strict-max-pool"/>
</mdb>
...
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0">
<resource-adapters>
<resource-adapter>
<archive>
wmq.jmsra.rar
</archive>
<transaction-support>NoTransaction</transaction-support>
<config-property name="logWriterEnabled">
true
</config-property>
<config-property name="traceLevel">
6
</config-property>
<config-property name="traceEnabled">
true
</config-property>
<connection-definitions>
<connection-definition class-name="com.ibm.mq.connector.outbound.ManagedConnectionFactoryImpl" jndi-name="java:/jboss/PVFConnectionFactory" pool-name="PVFConnectionFactory">
<config-property name="port">
port
</config-property>
<config-property name="channel">
SYSTEM.DEF.SVRCONN
</config-property>
<config-property name="hostName">
ip_address
</config-property>
<config-property name="transportType">
CLIENT
</config-property>
<config-property name="queueManager">
TEST_MRIS_IIB
</config-property>
</connection-definition>
</connection-definitions>
<admin-objects>
<admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:/jboss/jobQueue" pool-name="jobQueue">
<config-property name="baseQueueManagerName">
TEST_MRIS_IIB
</config-property>
<config-property name="baseQueueName">
Q_MRES_PSDS_ALL_MSG
</config-property>
</admin-object>
<admin-object class-name="com.ibm.mq.connector.outbound.MQQueueProxy" jndi-name="java:/jboss/backendQueue" pool-name="backendQueue">
<config-property name="baseQueueManagerName">
TEST_MRIS_IIB
</config-property>
<config-property name="baseQueueName">
Q_PVF_BACKEND
</config-property>
</admin-object>
</admin-objects>
</resource-adapter>
</resource-adapters>
</subsystem>
答案 0 :(得分:0)
您可能需要为资源适配器命名:
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.1">
<resource-adapters>
<resource-adapter id="wmq.jmsra.rar">
<archive>
wmq.jmsra.rar
</archive>
我很困惑:
Started message driven bean 'mdb' with 'wmq.jmsra' resource adapter
所有资源适配器都应具有名称“wmq.jmsra.rar”。 JBoss Web UI上的部署页面是否显示IBM MQ资源适配器?