JOnAS 4.8.4 Resource Adapter Admin Objects
<[email protected]> Wed, 13 Apr 2011 03:57:10 +0200 (CEST)
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
I've been trying to integrate ActiveMQ 5.4.2 with JonAS 4.8.4. I should mention
up front that upgrading to a newer version of JOnAS isn't an option.
I have managed to get it working. However, I had a number of problems which I
would like to understand better. Specifically, I couldn't get the jonas-ra.xml
configuration working properly for administered objects. In the end I had to
write a custom service to manually create my queue and put them into JNDI.
When I configured my queues via jonas-ra.xml they did get created and placed in
JNDI but for some reason they weren't visible to the EJB container. Connection
factories, on the other hand, worked fine when configured via jonas-ra.xml.
With that in mind, what's the correct way to configure an admin object in
jonas-ra.xml? Are you meant to use the id element in ra.xml and jonas-ra.xml?
The only way I could get JOnAS to create my queues was using the following
configuration:
ActiveMQ ra.xml
<adminobject id="queue1">
<adminobject-interface>javax.jms.Queue</adminobject-interface>
<adminobject-class>org.apache.activemq.command.ActiveMQQueue</adminobject-class>
<config-property>
<config-property-name>PhysicalName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
</adminobject>
jonas-ra.xml
<jonas-adminobject>
<id>queue1</id>
<description>org.apache.activemq.command.ActiveMQQueue</description>
<jndi-name>jms/event/Audit</jndi-name>
<jonas-config-property>
<jonas-config-property-name>PhysicalName</jonas-config-property-name>
<jonas-config-property-value>event.audit</jonas-config-property-value>
</jonas-config-property>
</jonas-adminobject>