« Return to Thread: JMS plugin
Thomas Huang wrote:And I modified the SampleQueueService.groovy to listen to my topicclass SampleQueueService {static expose = ['jms']static pubSub = truestatic durable = truestatic topic = 'my/msg/topic'def onMessage = {println "GOT MESSAGE: $it"}}At this point my service is not picking up any messages. I have acouple of questions1. where do I specify user credential information to connect to the JMS?2. if I want to do something with the message and than republish it adifferent topic, how do I do that?
Hi Thomas,
To get your service to pick up, you need to set a static destination rather
than topic to specify something other than the default of the service name
"sampleQueue" being used.
Credentials would go in the set up of the connection factory.
If I understand you right, to republish your message from your service
should be very similar to how you are sending now; get the conection
factory, and use a jms template to send, just in your service's onMessage.
I added an update to my
http://www.englishteeth.co.uk/2008/04/18/grails-jms-mdb/ original post on
this for pub sub
http://www.englishteeth.co.uk/2008/06/26/grails-jms-revisited/ here .
Thanks for sparking my interest. =)
Ian
--
View this message in context: http://www.nabble.com/JMS-plugin-tp18119291p18152015.html
Sent from the grails - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
« Return to Thread: JMS plugin
| Free embeddable forum powered by Nabble | Forum Help |