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!

Problem while updating the correlationId on an MQMessage

Status
Not open for further replies.

samoule

Programmer
Jun 24, 2003
2
FR
I'm using MQSeries 5.2
An application A sends a message with an auto-generated messageId
The client application B gets the messageID from the application A's message et put it on its own correlationID's message.

the application A never get the right correlationID (always a generated one).
I don't use any putMessageOption (MQ<balh-balh>_NONE)
here is the standard output :

##put the corelid in the corellationid field : [B@7a3ac1
message put the correlid after the put is :[B@5e3f2d

and the code :
mqMessage.correlationId = correlid;
logger.debug(&quot;##put the corelid in the corellationid field : &quot; + mqMessage.correlationId);
MQPutMessageOptions pmo = new MQPutMessageOptions();
pmo.options = MQC.MQPMO_NONE;
mqqueue.put(mqMessage, pmo);
logger.debug(&quot;message put the correlid after the put is :&quot; + mqMessage.correlationId);

Any suggestions ?
Sam


 
Forgot about this thread.
the problem wasn't the corelId itself but as i suspected the way to translate it between packages.

Note just that you may not print the corelID with &quot;new String(bytes[])&quot; method.
it doesn't seem to print the same thing eatch time...
Sorry for the noise ;-)

Sam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top