aspose 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
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.
 
wood burning stoves
 
subject: setting n retreiving some msg selector, using which reteiving only a particular msg