开发者

Using ActiveMQ and GlassFish together

开发者 https://www.devze.com 2023-01-04 18:09 出处:网络
Latest version of both, can not see how to enable ActiveMQ as an endpoint in Glassfish.Would like to use ActiveMq 开发者_开发问答as the JMS provider in Glassfish, the stuff I found on google does not

Latest version of both, can not see how to enable ActiveMQ as an endpoint in Glassfish. Would like to use ActiveMq 开发者_开发问答as the JMS provider in Glassfish, the stuff I found on google does not make sense. Any advise welcome.

Is it possible to just use the JMS connector and poitn at ActiveMQ - believe not but have I just configured wrong ?

Thanks


Please look at this tutorial: http://javadude.wordpress.com/2011/07/21/glassfish-v3-1-running-embedded-activemq-for-jms-part-1/


I've written an article (based on Sven's) that describes how to connect an external activemq broker to glassfish and deploy a Message Driven Bean that consumes messages from ActiveMQ.

You can find it here: http://geertschuring.wordpress.com/2012/04/20/how-to-connect-glassfish-3-to-activemq-5/


  1. Deploy activemq-rar-[version].rar as Connector Application to Glassfish
  2. You will need some *.jars (http://weblogs.java.net/blog/rampsarathy/archive/2007/03/glassfish_v2_an_1.html) in \domains[domainName]\lib\ext
  3. Create Connector Connection Pool with ActiveMQ
  4. Create Connector Resource (Factory) with Connector Connection Pool from 2.
  5. Create Queues.
0

精彩评论

暂无评论...
验证码 换一张
取 消