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 » Failover on JMS Destination

Post new topic  Reply to topic
 Failover on JMS Destination « View previous topic :: View next topic » 
Author Message
obernard
PostPosted: Thu Jan 11, 2007 6:25 am    Post subject: Failover on JMS Destination Reply with quote

Newbie

Joined: 11 Jan 2007
Posts: 7
Location: Montréal

Hi,

I try to figure how can implement a failover with JMS. I use weblogic server without Weblogic JMS Server. I have two QMGRs in MQ Cluster. I use QMGR2 for failover, but I don't know how my MDB's and my session beans can switch on QMGR2, went QMGR1 goes down.

thanks for your help!

Olivier
Back to top
View user's profile Send private message Send e-mail MSN Messenger
jefflowrey
PostPosted: Thu Jan 11, 2007 6:28 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Fail over the WebLogic Server at the same time.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jan 11, 2007 6:30 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

There are endless posts in the Clustering section about MQ Cluster as failover, and why it's at best a limited solution. At worst it's a nightmare.

Have a browse.

To answer your specific question, if you're using client connections you can code to reconnect on failure to a list of queue managers. So when QMGR1 goes down, the connection is lost, your code reconnects and finds only QMGR2.

If, however, you're using the cluster as it's intended to be used (for workload balancing) and putting via a gateway then you're code can't see which queue manager is in use. Please see my comments above regarding "MQ Clustering - it's not a failover solution".

My 2 cents. Other points of view may be valid.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jan 11, 2007 6:31 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

jefflowrey wrote:
Fail over the WebLogic Server at the same time.


Wouldn't that require failover software to detect the fall of the queue manager?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jan 11, 2007 6:35 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Vitor wrote:
jefflowrey wrote:
Fail over the WebLogic Server at the same time.


Wouldn't that require failover software to detect the fall of the queue manager?


You can't switch MDBs otherwise. You'd have to restart the MDB Listener port but have it use a different QCF, and likewise the session beans would have to know to switch to a different QCF.

The requirements require failover software.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jan 11, 2007 6:41 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

jefflowrey wrote:
The requirements require failover software.


I always enjoy being in furious agreement with you

obernard - I refer you again to the Clustering section where this debate rages intermittently. To give you a soundbite of my position:

"MQ Clusters are for load balancing. Failover software is for failing over".


_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
obernard
PostPosted: Thu Jan 11, 2007 6:55 am    Post subject: Reply with quote

Newbie

Joined: 11 Jan 2007
Posts: 7
Location: Montréal

Thanks everybody,

I know that MQ Cluster is for load balancing, but it's an enterprise decision. I'm not agree with that but I don't have a word to tell on this.

However, cluster or not, I have the same problem. It is possible to swith an MDB from a QMGR1 to QMGR2 transparently? If JMS can't, how can I do this?

Thanks,
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Vitor
PostPosted: Thu Jan 11, 2007 7:03 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

obernard wrote:
It is possible to swith an MDB from a QMGR1 to QMGR2 transparently?


As per jefflowrey above, no.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jan 11, 2007 9:25 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Vitor wrote:
obernard wrote:
It is possible to swith an MDB from a QMGR1 to QMGR2 transparently?


As per jefflowrey above, no.
Not with WebSphere MQ.
However you should verify whether this is possible with the WebSphere JMS Engine (New to 6.0)

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Fri Jan 12, 2007 3:00 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

fjb_saper wrote:
As per jefflowrey above, no.
Not with WebSphere MQ.
However you should verify whether this is possible with the WebSphere JMS Engine (New to 6.0)

Enjoy [/quote]

FJ - you would have to change what QCF the Listener Port uses.

Yes, the messaging engine might fail over from node 1 to node 2, transparently, but that's not the same thing.

I guess it's possible the QCF could have more than one messaging engine listed...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Failover on JMS Destination
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.