[jboss-user] [JBoss Messaging] New message: "Re: Failed Attempt to integrate JBOSS AS with Websphere MQ"
Ben Cotton
do-not-reply at jboss.com
Fri Feb 5 04:35:56 EST 2010
User development,
A new message was posted in the thread "Failed Attempt to integrate JBOSS AS with Websphere MQ":
http://community.jboss.org/message/524336#524336
Author : Ben Cotton
Profile : http://community.jboss.org/people/ben.cotton@rutgers.edu
Message:
--------------------------------------------------------------
The problem may be with you MDB's annotation for the "destination" propertyValue. Your annotation has +propertyValue="IVTQueue"+ (which is the JNDI name). Try using the value of the actual WSMQ hosted Queue "destination", which for your config would be +propertyValue="TEST.QUEUE"+
We also had lots of problems getting a JBoss 5 deployed MDB to consume from a WSMQ Destination via the IBM JCA resource adapter. It took a lot of hacking to get it to work.
Here are some relevant cut-n-pastes from a config that finally worked for us.
1. From the MDB.java file:
@MessageDriven(activationConfig =
{
@ActivationConfigProperty(propertyName="messagingType",propertyValue="javax.jms.MessageListener"),
@ActivationConfigProperty(propertyName = "destinationType",propertyValue = "javax.jms.Queue"),
@ActivationConfigProperty(propertyName = "destination", propertyValue = "SYSTEM.DEFAULT.LOCAL.QUEUE"),
@ActivationConfigProperty(propertyName = "useJNDI", propertyValue = "false"),
@ActivationConfigProperty(propertyName = "channel", propertyValue = "SYSTEM.DEF.SVRCONN"),
@ActivationConfigProperty(propertyName = "hostName", propertyValue = "10.9.60.107"), /* NYFILBB07945.AUR.LEHMAN.COM */
@ActivationConfigProperty(propertyName = "queueManager", propertyValue = "CapMktsQM"),
@ActivationConfigProperty(propertyName = "port", propertyValue = "1414"),
@ActivationConfigProperty(propertyName = "transportType", propertyValue = "CLIENT")
})
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
@ResourceAdapter(value = "wmq.jmsra.rar")
2. From the IVTCF-ds.xml file:
<connection-factories>
<mbean code="org.jboss.resource.deployment.AdminObject" name="jca.wmq:name=IVTQueue">
<attribute name="JNDIName">IVTQueue</attribute>
<depends optional-attribute-name="RARName">
jboss.jca:service=RARDeployment,name='wmq.jmsra.rar' </depends>
<attribute name="Type">javax.jms.Queue</attribute>
<attribute name="Properties">
baseQueueManagerName=CapMktsQM
baseQueueName=SYSTEM.DEFAULT.LOCAL.QUEUE </attribute>
</mbean>
<tx-connection-factory>
<jndi-name>IVTCF</jndi-name>
<xa-transaction/>
<rar-name>wmq.jmsra.rar</rar-name>
<use-java-context>false</use-java-context>
<connection-definition>javax.jms.ConnectionFactory</connection-definition>
<jmx-invoker-name>jboss:service=invoker,type=jrmp</jmx-invoker-name>
<min-pool-size>1</min-pool-size>
<max-pool-size>10</max-pool-size>
<blocking-timeout-millis>30000</blocking-timeout-millis>
<idle-timeout-minutes>30</idle-timeout-minutes>
<prefill>false</prefill>
<background-validation>false</background-validation>
<background-validation-millis>0</background-validation-millis>
<validate-on-match>true</validate-on-match>
<statistics-formatter>org.jboss.resource.statistic.pool.JBossDefaultSubPoolStatisticFormatter</statistics-formatter>
<isSameRM-override-value>false</isSameRM-override-value>
<allocation-retry>0</allocation-retry>
<allocation-retry-wait-millis>5000</allocation-retry-wait-millis>
<config-property type="java.lang.String" name="channel">SYSTEM.DEF.SVRCONN</config-property>
<config-property type="java.lang.String" name="hostName">10.9.60.107</config-property>
<config-property type="java.lang.String" name="port">1414</config-property>
<config-property type="java.lang.String" name="queueManager">CapMktsQM</config-property>
<config-property type="java.lang.String" name="transportType">CLIENT</config-property>
<security-domain-and-application>JmsXARealm</security-domain-and-application>
<xa-resource-timeout>0</xa-resource-timeout>
</tx-connection-factory>
</connection-factories>
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524336#524336
More information about the jboss-user
mailing list