You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Chily <su...@gpi.com.ar> on 2009/04/15 17:35:57 UTC

Jboss Rar and JCA Container Spring

We have successfully deployed ActiveMQ 3.1 as a .rar in JBoss 4.0.2. We
deploy our Spring war in JBoss and would like to add message-driven Pojos to
our app.
What we would like to do is use the ActiveMQ resource adaptor that is
running in Jboss' JCA container. By this i mean to not pass the serverUrl to
the resource adpater in the spring configuration file.
This works fine (the ConnectionFactory is used by a lot of jmsTemplates)
<bean id="jms.broker.connection.factory"
class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName" value="activemq/ConnectionFactory2" />
</bean>
<bean id="jms.queue.request"
class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName" value="queue/outbound" />
</bean>
 <bean id="jms.queue.response"
class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiName" value="queue/inbound" />
</bean>
   

But when we try to create the jca container, we don't klnow how to locate
the resource adapter from the jboss container.

        <jms:jca-listener-container
                resource-adapter="XXXXXXXXX">
                <jms:listener destination="TEST"
ref="message.example.listener" />
        </jms:jca-listener-container>



any help to use the jboss resource adapter  (lokup in jndi or somthing live
that)



-----
CTO
GPI Argentina
http://www.gpi.com.ar
-- 
View this message in context: http://www.nabble.com/Jboss-Rar-and-JCA-Container-Spring-tp23061411p23061411.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.