|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MDB - not pick up the msg from queue |
« View previous topic :: View next topic » |
Author |
Message
|
murugaanandam |
Posted: Fri Oct 15, 2004 12:45 am Post subject: MDB - not pick up the msg from queue |
|
|
Novice
Joined: 22 Apr 2004 Posts: 19
|
hi all
i have one problem,
this is my work flow,
we receive a msg (request queue) from EAI depart, with JMSXAppID:Verify then we process the msg and put it n reply queue with n 30 seconds, but we may put the reply msg n queue after 30 seconds also. that time EAI send a cancelation msg to us , that msg also contain JMSXAppID:Verify, but MDB not picked up the msg from Queue, once i restart the server , that time MDB Pick up the msg.
my problem is, why my MDB not pick up the second msg from queue,
what i 'll do for that pbm.
plz help me to solve the pbm
thanx n advance..
regards
muruganandam |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Oct 15, 2004 9:09 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
it seems to that we may have a misunderstanding on the functionality of JMS. You would not use an MDB in a request reply model. The reason for not using an MDB is that you want to use a message selector to make sure you only get the responses relevant to you. So you just use a JMSConsumer (Receiver) with selector and wait time.
Using an MDB (Listener concept) would force you to use a predetermined JMSCorrelaionid for all your request responses. While this is certainly feasable it is not part of best practices (a response should have the requester JMSMessageID as JMSCorrelationID
Enjoy  |
|
Back to top |
|
 |
murugaanandam |
Posted: Mon Oct 18, 2004 7:24 pm Post subject: Two MDB with Different Msg Selector to pointing one Queue? |
|
|
Novice
Joined: 22 Apr 2004 Posts: 19
|
thanx for replay
so how can i pick up the response msg from queue,
basically in that queue , 3 differnet message are coming
first request message is pick up by MDB
second message is pick up by Session Bean (with Correlation ID)
i want to pick up the Third Message ,
can i use another MDB to pick up the msg,
Two MDB with different Msg Selector to pointing same queue?
is it possible?
plz help me
thanx n advance |
|
Back to top |
|
 |
JLRowe |
Posted: Tue Oct 19, 2004 3:59 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
It depends if your reply has to be picked up synchronously or asynchronously. In the first case, your code sends a message and then immediately waits for the reply. In the second case, the requestor code sends the request message, and an MDB can handle the reply some time in the future. Of course, you have to pass context between the requestor and the reply handler, this can be the correlid (MQ/JMS standard), or it can be any business data element in the message - as long as the reply handler can correlate the two together.
WAS enterprise edition also has a facility called extended messaging to help with request/reply. For example, you can register a session bean to pick up a specific reply message. |
|
Back to top |
|
 |
bamboozled_by_MQ |
Posted: Wed Oct 20, 2004 6:26 am Post subject: |
|
|
Voyager
Joined: 07 Jan 2004 Posts: 75
|
So,
are you guys saying...
if i have two types of messages coming into a system on two different queues but will be accessing the same DB(perist and non-persist)
should I use a MDB for the persist messages which will be record updates etc,
use a session bean (request/reply) for the non persist since they will just be searches on the database anyway?
or use MDB's for both?
thanx |
|
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
|
|
|
|