|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to Receive message with Message ID from JMS |
« View previous topic :: View next topic » |
Author |
Message
|
balareddy |
Posted: Thu Mar 02, 2006 8:33 pm Post subject: How to Receive message with Message ID from JMS |
|
|
Acolyte
Joined: 06 Feb 2006 Posts: 54
|
Hi,
How to receive JMS mesage from the Queue by using message ID as parameter??
my application iplimentation is like this.
I have an Applet View to display all Queue message with QueueBrowse functionality.
Now From Applet View, i have to select one message and click on "post" buttion. This time i have to get that perticular selected message and put into Some other Queue .
Same Way i have to do some other operations on each message like Delete,..
In this case i have to Get message from Queue based on message ID only Right??? _________________ bala |
|
Back to top |
|
 |
briancop |
Posted: Fri Mar 03, 2006 3:24 am Post subject: Using a selector |
|
|
 Apprentice
Joined: 04 Apr 2005 Posts: 28 Location: Hursley, UK
|
One way to achieve what you want is to specify a selector when you create your message consumer, specifying the JMSMessageID that you are trying to get. Note that this would imply creating a new message consumer for each message, though (in MQ terms, MQOPEN, MQGET, MQCLOSE).
So your actions on clicking a button are something like:
Cons = Session.createMessageConsumer, with selector "JMSMessageID = <id>"
Msg = Cons.receive
Cons.close
...deal with Msg... |
|
Back to top |
|
 |
wschutz |
Posted: Fri Mar 03, 2006 3:35 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|