Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

[Grails] JMS Plugin - Message not displaying

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.......
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.



 
Sheriff
Posts: 67671
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have the same problem ,how to use jms plugin .
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Your mother is a hamster and your father smells of tiny ads!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic