aspose file tools*
The moose likes Groovy and the fly likes [Grails] JMS Plugin - Message not displaying Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "[Grails] JMS Plugin - Message not displaying" Watch "[Grails] JMS Plugin - Message not displaying" New topic
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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

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.




GenRocket - A Test Data Generation Platform
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

"venuvijayagiri gopalvijayagiri", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: [Grails] JMS Plugin - Message not displaying
 
Similar Threads
What can I access from /grails-app/src/java (and /grails-app/src/groovy)
Errors upon trying to use ActiveMQ
[Grails]ActiveMQ and JMS plugins
Grails for scaleable social networking applications
ActiveMQ 5.2.0 + REST + HTTP POST = java.lang.OutOfMemoryError