Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set MsgFlag for segmentation using MQSeries for Java

Status
Not open for further replies.

AlexeiSkate

Programmer
Apr 10, 2002
3
0
0
US
Hi,

I'm looking through the 'MQSeries V5 Programming Examples' redbook, which has programming examples written in C. When the C program put a segmented message on the queue, it codes the following: md.MsgFlags = MQMF_SEGMENT (md = Message Descriptor).

Java API uses the MQMessage object, which encapsulates the data and its message descriptor MQMD. How do I indicate that my message is a segment in Java similar to the C example above ? Do I set the MQMessage variable messagFlags to some constant ? (I don't see anything similar to MQMF_SEGMENT constant in the redbood for MQSeries for Java.) Or do I set some value in the MQPutMessageOption object to signal segmentation and send it over as a parameter for my MQMessage object ? How in general do I manipulate the MQMD values when using the Java API ? Us there another useful book beside the "MQSeries Using Java" from ibm redbook ?

Thanks for anyone that can give me some help/advice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top