|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
JMS compliant and segmentation (JMS_IBM_MQMD_MsgFlags) |
« View previous topic :: View next topic » |
Author |
Message
|
gingerina |
Posted: Wed Nov 30, 2011 6:59 am Post subject: JMS compliant and segmentation (JMS_IBM_MQMD_MsgFlags) |
|
|
Newbie
Joined: 27 Jul 2011 Posts: 5
|
I wrote a simple java program, wchich use JMS compliant api to send message to Websphere MQ:
factory = new MQQueueConnectionFactory();
factory.setTransportType(JMSC.MQJMS_TP_CLIENT_MQ_TCPIP);
Connection connection = factory.createQueueConnection(..);
session = (QueueSession)connection.createSession(...);
queue = new MQQueue("...");
queue.setTargetClient(JMSC.MQJMS_CLIENT_JMS_COMPLIANT);
MessageProducer sender = session.createSender(queue);
JMSTextMessage message =(JMSTextMessage)session.createTextMessage();
message.setIntProperty("JMS_IBM_MQMD_MsgFlags",new Integer(1)); //segmentation allowed
message.setText(...);
sender.send(message,dlvrMode,priority,ttl);
My goal is to pass a big message payload, which to be divided to segments on the server. I found this constant "JMS_IBM_MQMD_MsgFlags" WMQConstants.JMB_IBM_MQMD_MsgFlags with value MQMF_SEGMENTATION_ALLOWED
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=%2Fcom.ibm.mq.csqzaw.doc%2Fjm41050_.htm
However the result message is :
StrucId : 'MD ' Version : 2
Report : 0 MsgType : 8
Expiry : -1 Feedback : 0
Encoding : 273 CodedCharSetId : 1208
Format : 'MQHRF2 '
Priority : 4 Persistence : 1
....'
GroupId : X'000000000000000000000000000000000000000000000000'
MsgSeqNumber : '1'
Offset : '0'
MsgFlags : '0'
OriginalLength : '-1'
This property seem to be not taken into account. Could somebody advice, what else should be set ?
Thank you very much ! |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Nov 30, 2011 7:03 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
JMS doesn't support segmentation, only grouping, AFAIR |
|
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
|
|
|
|