ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » The type JMSC is deprecated?

Post new topic  Reply to topic
 The type JMSC is deprecated? « View previous topic :: View next topic » 
Author Message
dregel
PostPosted: Mon Oct 12, 2009 5:02 am    Post subject: The type JMSC is deprecated? Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 12, 2009 12:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
dregel
PostPosted: Mon Oct 12, 2009 1:44 pm    Post subject: Reply with quote

Newbie

Joined: 12 Oct 2009
Posts: 4

I'm totally with you on that one, it should be in the documentation.

The snippets in the information center show the same use of deprecated class:
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/topic/com.ibm.mq.csqzaw.doc/jm24370_.htm

What am I missing here?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 12, 2009 5:19 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
dregel
PostPosted: Tue Oct 13, 2009 12:42 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Oct 13, 2009 1:08 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/jm35150_.htm

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.javadoc.doc/WMQJMSClasses/index.html
Back to top
View user's profile Send private message
dregel
PostPosted: Tue Oct 13, 2009 1:49 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Oct 13, 2009 2:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

No, that's a duplicate message that I want deleted, not the original.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Oct 13, 2009 3:11 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

duplicate deleted
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
terlisimo
PostPosted: Mon Nov 09, 2009 5:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » The type JMSC is deprecated?
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.