|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ Java CLNTCONN compression |
« View previous topic :: View next topic » |
Author |
Message
|
RogerLacroix |
Posted: Thu Oct 11, 2012 11:09 am Post subject: MQ Java CLNTCONN compression |
|
|
 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 |
|
 |
mqjeff |
Posted: Thu Oct 11, 2012 11:34 am Post subject: |
|
|
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 |
|
 |
RogerLacroix |
Posted: Thu Oct 11, 2012 11:54 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|