You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Poul Møller Hansen <fr...@pbnet.dk> on 2012/05/11 21:13:12 UTC

ActiveMQ in Glassfish web application

Using an external ActiveMQ in an enterprise application in Glassfish 
works fine, setting up the connection factory in glassfish-ejb-jar.xml

<glassfish-ejb-jar>
     <enterprise-beans>
         <ejb>
             <ejb-name>ExampleMessageBean</ejb-name>
             <mdb-connection-factory>
                 <jndi-name>jms/connectionFactory</jndi-name>
             </mdb-connection-factory>
             <mdb-resource-adapter>
 
<resource-adapter-mid>activemq-rar-5.5.1</resource-adapter-mid>
             </mdb-resource-adapter>
         </ejb>
     </enterprise-beans>
</glassfish-ejb-jar>


But how can it be used in an web application ?
Are there an equivalent method in glassfish-web-app.xml ?


Thanks,
Poul