my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes how to consume a specific message from queue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to consume a specific message from queue" Watch "how to consume a specific message from queue" New topic
Author

how to consume a specific message from queue

everson santos
Ranch Hand

Joined: Jul 11, 2009
Posts: 50

I would like after do something consume/delete/take out the message from queue, but I can't ....

Eg. I have 4 messages on queue and I want consume just one


* I tried code below, but i got error

everson santos
Ranch Hand

Joined: Jul 11, 2009
Posts: 50

ntumba lobo
Ranch Hand

Joined: Oct 21, 2008
Posts: 180
typical JMS pitfall ;-)


SCJP 5 , SCWCD 5, SCEA 5
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to consume a specific message from queue
 
Similar Threads
How to send message from Web Component
how to set up a queueconnectionfactory
Message apparantly not getting to Queue or MDB from Java Client
Remove JMS message from Queue programatically
Separating JMS Producer/Consumer on JBoss 4.0.2