How to start/stop Websphere Message Broker using Java?

1k views Asked by At

I want my J2EE application had ability to programmatically start/stop Websphere Message Broker 7.0.1 or Integration Bus 9. MQ Explorer already have this feature, so i know it's possible to code this in java. What instrument should i use to implement this functionality? I've tried both MQ java API, PCF, CMP API, but didn't find any specific command.

1

There are 1 answers

3
Dave On BEST ANSWER

The CMP API isn't able to do this because there needs to something on the other end already listening to the MQ Queues in order to respond to the CMP message. The toolkit and IBX actually breaks out to the shell from java to start brokers which is why they can only start and stop local brokers