ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » MDB on temporary queue?

Post new topic  Reply to topic
 MDB on temporary queue? « View previous topic :: View next topic » 
Author Message
iavork
PostPosted: Mon Jun 18, 2007 7:49 am    Post subject: MDB on temporary queue? Reply with quote

Newbie

Joined: 10 Apr 2006
Posts: 9

Is there a chance to deploy MDB to listen on a temporary queue?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Mon Jun 18, 2007 8:28 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Jun 18, 2007 12:20 pm    Post subject: Re: MDB on temporary queue? Reply with quote

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
View user's profile Send private message Send e-mail
iavork
PostPosted: Tue Jun 19, 2007 1:43 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 19, 2007 2:52 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
marcin.kasinski
PostPosted: Tue Jun 19, 2007 2:52 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
iavork
PostPosted: Tue Jun 19, 2007 4:53 am    Post subject: Reply with quote

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
View user's profile Send private message
marcin.kasinski
PostPosted: Tue Jun 19, 2007 5:06 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

iavork wrote:
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?



You can use wsaadmin script.

Here you can find something about it:

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/txml_startport.html
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MDB on temporary queue?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.