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 » MQ Java CLNTCONN compression

Post new topic  Reply to topic
 MQ Java CLNTCONN compression « View previous topic :: View next topic » 
Author Message
RogerLacroix
PostPosted: Thu Oct 11, 2012 11:09 am    Post subject: MQ Java CLNTCONN compression Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

All,

For WMQ v7, IBM now says that using the MQ Java CLNTCONN constants HEADER_COMPRESSION_PROPERTY and MESSAGE_COMPRESSION_PROPERTY are deprecated. Also, the constants (MQCOMPRESS_NONE, MQCOMPRESS_RLE, MQCOMPRESS_ZLIBFAST & MQCOMPRESS_ZLIBHIGH) that go with those properties are deprecated.

i.e.
Code:
Hashtable mqht = new Hashtable();

mqht.put(MQC.CHANNEL_PROPERTY, "channelName");
mqht.put(MQC.HOST_NAME_PROPERTY, "hostname");
mqht.put(MQC.PORT_PROPERTY, new Integer("port#"));

mqht.put(MQC.HEADER_COMPRESSION_PROPERTY, MQC.MQCOMPRESS_SYSTEM);
mqht.put(MQC.MESSAGE_COMPRESSION_PROPERTY, MQC.MQCOMPRESS_ZLIBFAST);

_qMgr = new MQQueueManager("qMgrName", mqht);

The manual does not list what I should be using. Does anyone know what MQ Java constants are the replacements for the above listed constants?

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
mqjeff
PostPosted: Thu Oct 11, 2012 11:34 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I would just switch to using a CCDT entry?

Otherwise, MQC.* is replaced by the appropriate CMQC constant class to match the C library structures better.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Oct 11, 2012 11:54 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

mqjeff wrote:
I would just switch to using a CCDT entry?

MQFM supports both explicit values and the use of a CCDT.

mqjeff wrote:
Otherwise, MQC.* is replaced by the appropriate CMQC constant class to match the C library structures better.

Never thought to compare WMQ v7.0 and WMQ v7.1 documentation. Someone at IBM fat fingered it because in WMQ v7.1 the documentation does not list the HEADER_COMPRESSION_PROPERTY and MESSAGE_COMPRESSION_PROPERTY constants as deprecated. It only shows that MQCOMPRESS_NONE, MQCOMPRESS_RLE, MQCOMPRESS_ZLIBFAST and MQCOMPRESS_ZLIBHIGH are deprecated.
i.e.
Code:
Hashtable mqht = new Hashtable();

mqht.put(MQC.CHANNEL_PROPERTY, "channelName");
mqht.put(MQC.HOST_NAME_PROPERTY, "hostname");
mqht.put(MQC.PORT_PROPERTY, new Integer("port#"));

mqht.put(MQC.HEADER_COMPRESSION_PROPERTY, CMQC.MQCOMPRESS_SYSTEM);
mqht.put(MQC.MESSAGE_COMPRESSION_PROPERTY, CMQC.MQCOMPRESS_ZLIBFAST);

_qMgr = new MQQueueManager("qMgrName", mqht);


Weird. But it explains why I couldn't find them anywhere else.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQ Java CLNTCONN compression
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.