Author |
Message
|
dregel |
Posted: Mon Oct 12, 2009 5:02 am Post subject: The type JMSC is deprecated? |
|
|
Newbie
Joined: 12 Oct 2009 Posts: 4
|
Hi,
I'm trying to use the 7.0.1 jms client jars to put some messages to a queue manager and the JMSC.MQJMS_TP_CLIENT_MQ_TCPIP seems to be in a deprecated class. The javadoc refers to some new classes containing a lot of constants, but i cant figure out the new name.
What am i supposed to use instead? |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Oct 12, 2009 12:35 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Check it out, it should be in the documentation for V7.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
dregel |
Posted: Mon Oct 12, 2009 1:44 pm Post subject: |
|
|
Newbie
Joined: 12 Oct 2009 Posts: 4
|
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Oct 12, 2009 5:19 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Well calling up the doc on line I see different things...:
- com.ibm.mq.constants. covers all/most of the proprietary interfaces as well as pcf and other stuff. There is an MQConstants class that implements the interfaces
- com.ibm.mq.jms.JMSC is an interface that returns the needed values
- com.ibm.msg.client.jms... check out interface JmsConstants
Could not find any of the implementing classes for JMS though... _________________ MQ & Broker admin |
|
Back to top |
|
 |
dregel |
Posted: Tue Oct 13, 2009 12:42 am Post subject: |
|
|
Newbie
Joined: 12 Oct 2009 Posts: 4
|
I've tried sifting through the javadoc supplied with the wmq installation and also found the com.ibm.mq.constants.MQConstants, which contains about 200 million constants. An obvious replacement for MQJMS_TP_CLIENT_MQ_TCPIP doesnt present itself to someone of my weak wmq knowledge.
Thank you for helping |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 13, 2009 1:08 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
dregel |
Posted: Tue Oct 13, 2009 1:49 am Post subject: |
|
|
Newbie
Joined: 12 Oct 2009 Posts: 4
|
Cheers! That's the one!
Delete if you must, but some other poor moron might also need this information. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 13, 2009 2:02 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
No, that's a duplicate message that I want deleted, not the original. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Oct 13, 2009 3:11 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
duplicate deleted  _________________ MQ & Broker admin |
|
Back to top |
|
 |
terlisimo |
Posted: Mon Nov 09, 2009 5:36 pm Post subject: |
|
|
Newbie
Joined: 09 Nov 2009 Posts: 8
|
dregel wrote: |
An obvious replacement for MQJMS_TP_CLIENT_MQ_TCPIP doesnt present itself to someone of my weak wmq knowledge.
|
Had the same problem, google brought me here. This thread helped, thank you!
Apparently instead of
MQConnectionFactory.setTransportType(MQJMS_TP_CLIENT_MQ_TCPIP);
one should use
MQConnectionFactory.setIntProperty(WMQConstants.WMQ_CONNECTION_MODE, WMQConstants.WMQ_CM_CLIENT); |
|
Back to top |
|
 |
|