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 » MQMessage.readString() deprecated, but by what?

Post new topic  Reply to topic
 MQMessage.readString() deprecated, but by what? « View previous topic :: View next topic » 
Author Message
pcelari
PostPosted: Tue Sep 30, 2008 11:18 am    Post subject: MQMessage.readString() deprecated, but by what? Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

I tried to javac an year old mq-base java class. But I got the compiler warning:

>javac -Xlint:deprecation mqGetMsg.java
mqGetMsg.java:153: warning: [deprecation] readString(int) in com.ibm.mq.MQMessage has been deprecated
msgText = replyMsg.readString(replyMsg.getMessageLength());
^
1 warning

I found a few postings over this problem, but have found no result.

Anyone know a solution about this?

The v6.0 mq infocenter didn't say the method had been deprecated though.
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
Back to top
View user's profile Send private message
mqjeff
PostPosted: Tue Sep 30, 2008 12:09 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The Info Center does not clearly highlight this change from MQ v5.3 Java API to the v6 Java API.

However, it is still changed.

Use readStringOfByteLength or readStringOfCharLength instead.
Back to top
View user's profile Send private message
pcelari
PostPosted: Wed Oct 01, 2008 12:11 pm    Post subject: Reply with quote

Chevalier

Joined: 31 Mar 2006
Posts: 411
Location: New York

thanks for the insight. I now use the new one.

I wonder why the deprecation is necessary.

thanks a lot.
_________________
pcelari
-----------------------------------------
- a master of always being a newbie
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 » MQMessage.readString() deprecated, but by what?
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.