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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MQSeries and support pacs MA88 and MACJ

Status
Not open for further replies.

mrmike66

Technical User
Dec 12, 2001
2
US
What I want to know is, when I use the MA88 java support pac to send messages, is it putting a true text message on the queue or a java object?
I think it is an object, because when I use the MACJ dos client to retreive messages from the queue it returns an error code 2110. As well as when I try to view the messages on the queue using the mq explorer, it does not display any understandable text.

Can anyone help?
 
Hi.
I have not used MQ in java, but maybe this will help from VB.

When you put a message that may need conversion, try setting the message descriptor format to MQFMT_STRING. In VB this looks like:
md.Format = MQFMT_STRING
This should allow you to read it in the mq explorer.

If you need to GET the message programmatically, you need to turn the conversion method on for the get message options by adding MQGMO_CONVERT to the MQGMO Options. In VB it might look like this:
gmo_Options = MQGMO_CONVERT + MQGMO_FAIL_IF_QUIESCING

For more information on this look at the MQMD Format field section in the Application Programming Reference.
I hope this is helpful.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top