File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes setting n retreiving some  msg selector, using which reteiving only a particular msg 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 » Java » EJB and other Java EE Technologies
Bookmark "setting n retreiving some  msg selector, using which reteiving only a particular msg " Watch "setting n retreiving some  msg selector, using which reteiving only a particular msg " New topic
Author

setting n retreiving some msg selector, using which reteiving only a particular msg

rahul batra
Greenhorn

Joined: Nov 16, 2005
Posts: 10
Hello friends,
My application Requirement.
I have to send messages using QueueSender and all of those messages must be uniqely indentifiable on the queue since while responding to those messages i have to see to what message am i replying .
so i am haiving two problems

1) what to use and how to set a messages with some unique identifier before sending it using QueueSender on the queue.

2) while retreiving , i have to check the message for identifying it and then appropriately replying. so that means i will have to specify some message selector while creating my QueueReceiver using QueueSession. and then retreive only that message from queue which is equal to the value that i had set while sending the message

However i am not able to write the code for it though i went through the API's.

please do help if any one of you have done it earlier.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: setting n retreiving some msg selector, using which reteiving only a particular msg
 
Similar Threads
Reading TextMessage sent using JMS, read it using C++
retreiving contents of JTextFields for logic
Retreiving objects from a bean
Recieving response from MDB
retreiving data through jsp