Author |
Message
|
iavork |
Posted: Mon Jun 18, 2007 7:49 am Post subject: MDB on temporary queue? |
|
|
Newbie
Joined: 10 Apr 2006 Posts: 9
|
Is there a chance to deploy MDB to listen on a temporary queue? |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jun 18, 2007 8:28 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What happens when you try it? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jun 18, 2007 12:20 pm Post subject: Re: MDB on temporary queue? |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
iavork wrote: |
Is there a chance to deploy MDB to listen on a temporary queue? |
Don't know if it can or can't work; it just doesn't make much sense though.
If you are in a request/reply mode you should just to do a receive(timeout) against the temp queue.
Anyways if your selector changes this makes even less sense.
Review what you are trying to do and tell us what it is and how you are thinking of implementing it... _________________ MQ & Broker admin |
|
Back to top |
|
 |
iavork |
Posted: Tue Jun 19, 2007 1:43 am Post subject: |
|
|
Newbie
Joined: 10 Apr 2006 Posts: 9
|
Well, we have several types of batch processes, we want to publish each batch as many messages and process the messages in parallel. We want to use MDB. We want to be able to execute two or more different batches in parallel as well, so we need different queues, but we would like to avoid the waste of system resources having many listeners running all of the time.
- is it possible to enable/disable the listener/MDB?
- about the temporary queue - we want to use a temporary queue as if we interrupt the batch we want the queue be flushed. This might be a bad idea... |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Jun 19, 2007 2:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Using a temporary queue for this process does not make any sense.
You need to use a predefined permanent queue. To use an MDB is fine.
Make sure you have a bothresh defined. Make sure the MDB retry count > bothresh. And make sure you set the MDB max instance on your queue accordingly to your parallel processing needs.
By the way, with those settings there is no message affinity allowed...
Last but not least make sure your qcf has Fail if quiesce enabled.
Enjoy  _________________ MQ & Broker admin
Last edited by fjb_saper on Tue Jun 19, 2007 2:53 am; edited 1 time in total |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Tue Jun 19, 2007 2:52 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
iavork wrote: |
- is it possible to enable/disable the listener/MDB?
|
In WAS you can start /stop listener port. (MDB listener)
iavork wrote: |
- about the temporary queue - we want to use a temporary queue as if we interrupt the batch we want the queue be flushed. This might be a bad idea... |
I don't now. I don't feel it.
I can imagine temporary in standard req-resp scenario, but here... _________________ Marcin |
|
Back to top |
|
 |
iavork |
Posted: Tue Jun 19, 2007 4:53 am Post subject: |
|
|
Newbie
Joined: 10 Apr 2006 Posts: 9
|
Thanks a lot for all your comments.
Marcin, do we need to use JMX to stop/start the listener ports? Is it possible somehow to maintain the listener port in JMS only? |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Tue Jun 19, 2007 5:06 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
|
Back to top |
|
 |
|