Need help with making Sonic-MQ Resource Adapter work in AS7
nd_100 Apr 19, 2013 1:56 AMWe have Sonic MQ 8.5.1 as our jms provider. I need to listen to certain topics for my application that we are developing in Jboss EAP6 i.e. jboss AS 7.1. The resource adapter (v8.5.1) provided by Sonic does not yet support AS7. Apparently, some of the folks on this forum have gotten this RA to work with AS7 with some tweaks. I am getting an "Invalid connection definition" from SonicConnectionFactory but no other information, and vendor (sonic) hasn't been any help so far.
Any information/pointers/configuration is appreciated, really hit a wall with this one...
Based on all the info/docs I found on the web, I did the following:
- Disabled archive-validation in standalone-full.xml's jca subsection
- Created/deployed a new module for sonic libraries to AS7.
- Added this new module as dependency in MANIFEST.MF of the sonic Resource Adapter, and deployed the resource adapter to AS7.
- Modified standalone-full.xml's section <subsystem xmlns="urn:jboss:domain:ejb3:1.3"> to include the following:
<mdb>
<resource-adapter-ref resource-adapter-name="sonic-jms-ra"/>
<bean-instance-pool-ref pool-name="mdb-strict-max-pool"/>
</mdb> - Modified standalone-full.xml's resouce-adapters section as pasted at the end of this message. Tried two different connection definitions, both are pasted below.
- When the server (w/ standalone-full.xml) startsup, I get the following "invalid connection definition" message 6 times (log attached along).
21:41:01,853 WARN [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-1) IJ020009: Invalid connection definition with class-name: com.sonicsw.sonicmq.j2ee.jmsra.sonicra.SonicConnectionFactory
First version of modifications to standalone-full.xml's resouce-adapters section:
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0"> | ||
<resource-adapters> | ||
<resource-adapter> | ||
<archive>sonic-jms-ra.rar</archive> | ||
<!-- Resource adapter level config-property --> | ||
<!-- <config-property name="Server">localhost</config-property> --> | ||
<!-- <config-property name="Port">19001</config-property> --> | ||
<transaction-support>XATransaction</transaction-support> | ||
<connection-definitions> | ||
<connection-definition class-name="com.sonicsw.sonicmq.j2ee.jmsra.sonicra.SonicConnectionFactory" | ||
jndi-name="java:/SonicJMS/default/ConnectionFactory" | ||
pool-name="SonicJMSConnectionFactory"> | ||
<!-- Managed connection factory level config-property --> | ||
<config-property name="Name">sonic-jms-ra</config-property> | ||
<!-- | <pool> --> | |
<!-- | <min-pool-size>10</min-pool-size> --> | |
<!-- | <max-pool-size>100</max-pool-size> --> | |
<!-- | </pool> --> | |
<security> | ||
<application/> | ||
</security> | ||
</connection-definition> | ||
</connection-definitions> | ||
</resource-adapter> | ||
</resource-adapters> | ||
</subsystem> |
Second version of modifications to standalone-full.xml's resouce-adapters section is attached along
-
standalone-full.xml 25.5 KB
-
server.log.zip 2.4 KB