aspose file tools*
The moose likes Websphere and the fly likes When a message is posted to MQ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "When a message is posted to MQ?" Watch "When a message is posted to MQ?" New topic
Author

When a message is posted to MQ?

Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 210
Hi Friends,
I need your help if anyone of you can help me out.

I am posting a message to MQ using MQ client.

The put options I am using is



One thing I would like to know, what does these put options mean? And how can I contro them? What are the options that are available?
I want to know, if I can generate a correlation id and can I use it instead of generating it by MQ.




I can see that correlation id has been changed by the put method.

I want to know, does put message actually sends a message to MQ? or the sending happens when we do



Friends, please help me understanding, how can I control correlation Id.

The MQ team here says that you are sending junk characters in correlation id. I am sending what ever put message is generating.
Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 210
If I set put options to MCPMO_NONE as follows:



And i populate mqMsg.messageId and mqMsg.correlationId before I call put

Then put method doesn't fills this value from its own.

Now, I can control the correlation id my a sequence.


I am setting a Byte Array (whose string represenation is 10000009)
But MQ team is saying that they are recieving a hex representation of the Byte array.

Does MQ converts it into hex internally???

Can anybody help?
Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 210
the major concern here is the length of the correlation id

that is 48 characters ....

but the clumn length is 32 characters in the database on mq side.
and it fails

is there any way i can control length of correlation id in msg?
Yogesh Gandhi
Ranch Hand

Joined: Dec 05, 2008
Posts: 210
Well i was able to control the length of the corrrelation id.

precisely what made it work is difficult for me to say. However I will list down the things that i did to make it work.

Earlier Code (which was not working)




Code Which worked for me:
 
jQuery in Action, 2nd edition
 
subject: When a message is posted to MQ?