Author |
Message
|
aditya.aggarwal |
Posted: Fri Dec 04, 2009 2:27 am Post subject: CMP API Execiser and Broker Domain Connection is not Constan |
|
|
 Master
Joined: 13 Jan 2009 Posts: 252
|
Hi,
We are using the CMP API Execiser GUI to build, administer the Broker domain.
Whenever we close the CMP API Exerciser we need to connect with Broker Domain again by supplying the Config Manager parameter.
Is there any way to keep the Cofigmanager connection in CMP API execiser constant?
Do we need to made any change is the code of CMP API exerciser GUI?
Cheers,
Aditya |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Dec 04, 2009 2:47 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
If mean by 'Close' you quit the application then yes what you are seeing is correct.
You could be smart and write your own Java app that used the CMP API that would have the ability to automatically open a connection at startup using information read from something like a properties file.
Remember that in V7, there is no Config Manager so you ideally would need to have a list of brokers with a preferred one for auto open. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
aditya.aggarwal |
Posted: Fri Dec 04, 2009 2:57 am Post subject: |
|
|
 Master
Joined: 13 Jan 2009 Posts: 252
|
Thanks....
I knew that in V7 there will be no config manager.... but i am not able to find any documentation on how to create and handle a broker domain in V7...
Regards,
Aditya |
|
Back to top |
|
 |
mqmatt |
Posted: Fri Dec 04, 2009 3:25 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
There is no 'domain' concept in v7; you simply connect to each broker directly. (The MB Toolkit/Explorer can automatically connect to each broker for you when you start).
For the API Exerciser, if you wanted to automatically connect to a broker (or CM in v6.x) on startup, you can modify the sample to do this:
At the end of the CMPAPIExerciser.go() method, call either classTesterBroker.testConnectToLocalBroker() or classTesterBroker.testConnectToRemoteBroker()
(or in v6.x classTesterCMP.testConnect()). |
|
Back to top |
|
 |
aditya.aggarwal |
Posted: Fri Dec 04, 2009 3:33 am Post subject: |
|
|
 Master
Joined: 13 Jan 2009 Posts: 252
|
Thanks mqmatt... I will try to implement this with V7Broker... |
|
Back to top |
|
 |
zpat |
Posted: Tue Jul 10, 2012 12:11 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Does the CMP API exerciser get installed with the Broker Toolkit or runtime?
I want to install this for someone who does not need the full toolkit - what's the easiest way to do this? |
|
Back to top |
|
 |
mgk |
Posted: Tue Jul 10, 2012 12:43 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
The CMP API Excerciser comes with the runtime.
Kind regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
|