Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1EF13790E for ; Wed, 17 Aug 2011 15:15:50 +0000 (UTC) Received: (qmail 12915 invoked by uid 500); 17 Aug 2011 15:15:49 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 12874 invoked by uid 500); 17 Aug 2011 15:15:49 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 12866 invoked by uid 99); 17 Aug 2011 15:15:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2011 15:15:48 +0000 X-ASF-Spam-Status: No, hits=1.9 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_NEUTRAL,URI_HEX,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.18.3.30] (HELO exprod8og115.obsmtp.com) (64.18.3.30) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Aug 2011 15:15:44 +0000 Received: from mail-fx0-f47.google.com ([209.85.161.47]) (using TLSv1) by exprod8ob115.postini.com ([64.18.7.12]) with SMTP ID DSNKTkvbCs11U/XIe2EgjuyUVTbn/Eyq+VAg@postini.com; Wed, 17 Aug 2011 08:15:23 PDT Received: by fxg11 with SMTP id 11so790825fxg.6 for ; Wed, 17 Aug 2011 08:15:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.28.72 with SMTP id l8mr1582799fac.51.1313594120914; Wed, 17 Aug 2011 08:15:20 -0700 (PDT) Received: by 10.223.143.78 with HTTP; Wed, 17 Aug 2011 08:15:20 -0700 (PDT) In-Reply-To: References: <1313173314532-3740122.post@n4.nabble.com> Date: Wed, 17 Aug 2011 11:15:20 -0400 Message-ID: Subject: Re: AcetiveMQ AJAX in Grail Application From: Todd Crone To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=00151744102ef4c82104aab4f6a1 --00151744102ef4c82104aab4f6a1 Content-Type: text/plain; charset=ISO-8859-1 In BuildConfig you will need something like these dependencies: // not sure if this one is needed runtime "org.springframework.integration:spring-integration-core:$springIntegrationVersion" // I think this is needed for JmsTemplate runtime "org.springframework.integration:spring-integration-jms:$springIntegrationVersion" // this one surely runtime 'org.apache.activemq:activemq-all:5.x.0' On Wed, Aug 17, 2011 at 11:12 AM, Todd Crone wrote: > I would avoid the Grails plugin. It openly admits to not be good for > production usage and I have seen these types plugins in Grails that give you > nothing but heartache. In my Grails app, I simply configured activemq in > resources.groovy. > > Sample config in resources.groovy: > > jmsFactory(org.apache.activemq.ActiveMQConnectionFactory) { > brokerURL = 'tcp://hostname.company.com:61616' > } > > jmsTemplate(org.springframework.jms.core.JmsTemplate) { > connectionFactory = jmsFactory > } > > listener(com.company.Listener) { > someService = ref('someService') > } > > > messageListenerContainer(org.springframework.jms.listener.SimpleMessageListenerContainer) > { > connectionFactory = jmsFactory > destinationName = 'some.queue' > messageListener = listener > } > > sender(com.company.SenderImpl) { > jmsTemplate = ref('jmsTemplate') > } > > Or you can just configure in resources.xml like a typical Spring > configuration. You can try the Grails plugin, but I tend to think it will > turn into a big pain. Lots of plugins that are more mainstream are good. > But plenty end up being more work than just doing it the Spring way. > > Todd > > > On Wed, Aug 17, 2011 at 4:54 AM, Dejan Bosanac wrote: > >> The best way to connect Grails apps with ActiveMQ is to use >> http://grails.org/plugin/activemq >> >> >> Regards >> -- >> Dejan Bosanac - http://twitter.com/dejanb >> ----------------- >> The experts in open source integration and messaging - >> http://fusesource.com >> ActiveMQ in Action - http://www.manning.com/snyder/ >> Blog - http://www.nighttale.net >> >> >> On Fri, Aug 12, 2011 at 8:21 PM, bdrhoa wrote: >> >> > I downloaded the ActiveMQ binaries and got the demo to run fine. But >> I'm >> > stuck getting anything to work in a Grails app. >> > >> > I added activemq-web-5.5.0.jar to my lib. But I don't know how to set >> the >> > URI to point to it correctly. Do I need to do something the URL Mapping? >> > Or? >> > >> > >> > >> > >> > -- >> > View this message in context: >> > >> http://activemq.2283324.n4.nabble.com/AcetiveMQ-AJAX-in-Grail-Application-tp3740122p3740122.html >> > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> > >> > > --00151744102ef4c82104aab4f6a1--