开发者

Grails external Jms broker (active mq)

I have what will become an 'external' activemq server I'd like grails to be able to talk to. Right now I am just running it on my dev box. Here is what I have setup right now:

1) Run activemq server

2) Run activemq/examples using ant to produce messages

3) View ActiveMQ admin site: http://localhost:8161/admin/queues.jsp verify that messages are in the queue.

4) Follow Mini Tutorial to create the Service and Controller: http://www.grails.org/ActiveMQ+Plug开发者_StackOverflow中文版in

5) Configured my Grails resources.groovy file as follows:

beans = {
    jmsConnectionFactory(SingleConnectionFactory){
        targetConnectionFactory = { ActiveMQConnectionFactory cf -> brokerURL = 'tcp://localhost:61616' }
    }
}

When I run the grails app I get a BindException saying port 61616 is already in use.

How do I configure this to use my server that is already running?

I've tried changing 'localhost' to '127.0.0.1' and to my LAN ip, but no luck, it keeps trying to setup its own embedded activemq server.

Any ideas?


The activemq plugin is meant for embedding ActiveMQ in your application. It will automatically start it's own server when your app starts.

If you're going to use an external ActiveMQ server then you only need the JMS plugin.

cheers

Lee

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜