This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setting n retreiving some msg selector, using which reteiving only a particular msg
 
Similar Threads
retreiving data through jsp
Reading TextMessage sent using JMS, read it using C++
Retreiving objects from a bean
Recieving response from MDB
retreiving contents of JTextFields for logic