activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Todd Crone <tocr...@lexmark.com>
Subject Re: AcetiveMQ AJAX in Grail Application
Date Wed, 17 Aug 2011 15:12:08 GMT
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 <dejan@nighttale.net> 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 <bdrhoa@gmail.com> 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.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message