Author |
Message
|
bh |
Posted: Tue Jan 25, 2005 4:23 am Post subject: automated WMQe start and stop issue on Unix |
|
|
Acolyte
Joined: 25 Jun 2001 Posts: 61
|
Hi all,
I'm in the situation where WMQe tasks (start and stop) need to be automated in a production world - on a Solaris box -.
Unfortunaltly I didn't find anything that can help me to start and stop WMQe server (except the kill command) ?
Does anybody have some experience or feedback on such issue ?
WMQe on the Solaris box provides the gateway between PDA and an other Sun box running WMQ qm. And I'm looking for a automated and industrialised solution .. I have seen the support pack which is providing WMQe as a service but it's on Windows environment only.
Any help appreciated.
Thanks in advance. |
|
Back to top |
|
 |
lillo |
Posted: Mon Jan 31, 2005 3:57 am Post subject: |
|
|
Master
Joined: 11 Sep 2001 Posts: 224
|
We had a similar problem in the client side and solved running the mqe inside a jboss. We start/stop the qmgr with a MBean and the programs can always get the qmgr instance running in the JVM.
I hope this help you.
Regards,
Lillo _________________ Lillo
IBM Certified Specialist - WebSphere MQ |
|
Back to top |
|
 |
YATAWAL |
Posted: Tue Feb 01, 2005 5:40 am Post subject: |
|
|
Apprentice
Joined: 26 Feb 2004 Posts: 25
|
You can use a MQe queue rule to achieve this as well.
Create a queue rule so that the PutMessage method has the following line.
MQeQueueManager.getDefaultQueueManager().closeQuiesce(5000) ;
On the server define a queue and set this rule as a property.
To close the queue manager, remotely send an asynchrnous message to this server queue. Additional checks can be performed inside the rule to authenticate and audit log the close message if required. The queue manager should shutdown cleanly. |
|
Back to top |
|
 |
lillo |
Posted: Tue Feb 01, 2005 7:46 am Post subject: |
|
|
Master
Joined: 11 Sep 2001 Posts: 224
|
and what about to start the queue manager? _________________ Lillo
IBM Certified Specialist - WebSphere MQ |
|
Back to top |
|
 |
YATAWAL |
Posted: Sun Feb 06, 2005 8:04 am Post subject: |
|
|
Apprentice
Joined: 26 Feb 2004 Posts: 25
|
There is a queue manager start example in the product.
MQe server (no MQ bridge):
java examples.queuemanager.MQeServer <ini_file>
MQe gateway (server + MQ bridge):
java examples.mqbridge.queuemanager.MQBridgeServer <ini_file> |
|
Back to top |
|
 |
|