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 » JMS compliant and segmentation (JMS_IBM_MQMD_MsgFlags)

Post new topic  Reply to topic
 JMS compliant and segmentation (JMS_IBM_MQMD_MsgFlags) « View previous topic :: View next topic » 
Author Message
gingerina
PostPosted: Wed Nov 30, 2011 6:59 am    Post subject: JMS compliant and segmentation (JMS_IBM_MQMD_MsgFlags) Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 30, 2011 7:03 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

JMS doesn't support segmentation, only grouping, AFAIR
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 » JMS compliant and segmentation (JMS_IBM_MQMD_MsgFlags)
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.