|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Querying configurable services in runtime? |
« View previous topic :: View next topic » |
Author |
Message
|
billybong |
Posted: Tue Dec 21, 2010 4:20 am Post subject: Querying configurable services in runtime? |
|
|
 Disciple
Joined: 22 Jul 2005 Posts: 150 Location: Stockholm, Sweden
|
Hi guys,
Has anyone found any API's I could use to query configurable services in WMB6.1?
I have some jms logic (not MQ-jms) that puts specific requirements on provider properties that I need to get hold of in a JCN.
I think I remember some IBM'er showing me a way in WMB7, but I've yet to find any documentation on how it's done, and if it is even possible in WMB6.1.
Thanks in advance! _________________ IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Integration Developer V6.0
IBM Certified System Administrator - WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere DataPower |
|
Back to top |
|
 |
mqmatt |
Posted: Tue Dec 21, 2010 4:40 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
You can use the CMP to do this, and it can be embedded in either JMS applications or JavaCompute nodes. It works in both V6.1 and V7, but V7 does make it easier: not only because the CMP can work directly inside the broker rather than going through a ConfigMgr, but there are also more intuitive methods available.
For V6.1, check out BrokerProxy.getConfigurableServiceProperty(). Load up the CMP API Exerciser application to see what kind of information you get back from this method.
For V7, just use the com.ibm.broker.config.proxy.ConfigurableService class.
If you embed the CMP application inside a JMS application, note that in addition to ConfigManagerProxy.jar, the CMP does require the MQ Java Classes to be available on the CLASSPATH, even if you're using a non-MQ JMS provider. |
|
Back to top |
|
 |
billybong |
Posted: Tue Dec 21, 2010 4:53 am Post subject: |
|
|
 Disciple
Joined: 22 Jul 2005 Posts: 150 Location: Stockholm, Sweden
|
Ah, thanks Matt.
I thought of that way as well, but unfortunately I'd not like to have my logic rely on the availability of the CfgMgr in runtime. For v7 that's not a big thing to use that API, since it doesn't introduce new moving parts, but for v6 I'd rather not.
Btw, the reason why I'm doing this is to get a hold on provider specific jms-parameters when dealing with synchronous JMS req/resp scenarios where I have to develop the provider response part inside a JCN since there are no JMSGet nodes that can help me. _________________ IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Integration Developer V6.0
IBM Certified System Administrator - WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere DataPower |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|