| Author |
[Grails] JMS Plugin - Message not displaying
|
venu v gopal v
Greenhorn
Joined: Apr 26, 2010
Posts: 6
|
|
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
Ranch Hand
Joined: Jul 11, 2001
Posts: 15230
|
|
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
Joined: Jan 10, 2002
Posts: 56529
|
|
|
"venuvijayagiri gopalvijayagiri", please check your private messages for an important administrative matter.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
venu v gopal v
Greenhorn
Joined: Apr 26, 2010
Posts: 6
|
|
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
Joined: Jul 11, 2001
Posts: 15230
|
|
|
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
Joined: Apr 26, 2010
Posts: 6
|
|
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
Joined: Jun 06, 2010
Posts: 1
|
|
|
i have the same problem ,how to use jms plugin .
|
 |
Christian Sonne Jensen
Greenhorn
Joined: Jun 07, 2010
Posts: 1
|
|
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
|
 |
 |
|
|
subject: [Grails] JMS Plugin - Message not displaying
|
|
|