Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[Grails] JMS Plugin - Message not displaying

 
venu v gopal v
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have created a sample grails application by installing jms and activemq plugins with the 1.2-M3 version
created a controller and a service class with the following code...

and the controller code is as follows

Am not able to get the display in console, but am getting in browser when we click the controller.
please suggest me on this.......
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A couple of house keeping things; please UseCodeTags when displaying code so that it keeps the formatting and is easier to read. Also, you might consider better subjects. The subject 'Grails' is very vague. I've adjusted both.

Do you mean you don't get anything on the console or just the message you sent is missing? because this...



...is wrong.



 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64843
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"venuvijayagiri gopalvijayagiri", please check your private messages for an important administrative matter.
 
venu v gopal v
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bolinger,

Thanks for your quick response,
so what i need to write/replace to debug my println statement.
I am getting the message output in the browser, but the message what i have written in service.groovy that should be shown
on the console but its not showing. IT Should display GOT MESSAGE.
can you please suggest me on this.
 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are you using Grails 1.2-M3 ? Try the latest release (1.2.2) and see if you are still having issues.
 
venu v gopal v
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Bolinger,

Still am having the same issue. The messages which i printed in the service am not able to get in the console and i tried it
with the latest grails-1.2.2 version. can you suggest me why this happening.
And also i have used the code on the following lik.

http://alkemist.github.com/grails-jms/docs/manual/index.html
 
shen xiuqiang
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have the same problem ,how to use jms plugin .
 
Christian Sonne Jensen
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Two things are wrong:

First of all "expose" misses an 's'. It should be "exposes".

Second the method "onMessage" should be defined taking a parameter. All in all this should do the trick:



Furthermore you can use a named queue by specifying the destination like:



Happy hacking!

Christian Sonne Jensen
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic