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 » Correlationid length

Post new topic  Reply to topic
 Correlationid length « View previous topic :: View next topic » 
Author Message
reubeuleu
PostPosted: Wed Jan 28, 2009 8:35 am    Post subject: Correlationid length Reply with quote

Newbie

Joined: 28 Jan 2009
Posts: 3

Hi,

I'm developping a new webservice which is supposed to write messages on a Z/OS qManager

I'm expected to use a parametered correlationid (no problem at this step) but also to specify this correlationid length when I send the message...

I cannot find the corresponding API

Does anybody have encountered this problem or have an idea ?

Thanks !
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 28, 2009 3:12 pm    Post subject: Re: Correlationid length Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

reubeuleu wrote:
Hi,

I'm developping a new webservice which is supposed to write messages on a Z/OS qManager

I'm expected to use a parametered correlationid (no problem at this step) but also to specify this correlationid length when I send the message...

I cannot find the corresponding API

Does anybody have encountered this problem or have an idea ?

Thanks !

Who set these requirements and can you be more specific about the requirements?

Understand that MsgId and CorrelationId follow the anonymous identifier pattern. It is best practice to let the system assign them...

You can only use a correlationId bigger than 24 bytes when using a JMS header(RFHUtil), or properties in V7. For all purposes MQBase still only looks at the first 24 bytes of that correlationId... or not at all in the case of properties...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
reubeuleu
PostPosted: Thu Jan 29, 2009 1:44 am    Post subject: Reply with quote

Newbie

Joined: 28 Jan 2009
Posts: 3

Hi !

first, I was thinking of configure the correlationid in the jBoss 'wmq.jmsra-ds.xml' config file but I haven't any solution, so now I'm looking for setting up this parameter in the java source code (using an environnment property).

on our Z/OS systems, there's only 1 qManager who refers to n application'instances (each one corresponding to a different test level environment)

the correlationid is used as a filter to transmit the message to the right final instance
and its length is 2 characters

the length specification will helps de z/Os giving up the following characters
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jan 29, 2009 3:28 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Be aware as well that as the correlationId is a BYTE[24] field there is no translation from platform to platform. So an Ascii char in pos 1 does not magically become an EBCDIC char in pos 1... and you may be on a whole path of hurt....

This type of information (processing rule) should be part of your payload, or part of the message properties (easier in V7). You should not use the MQMD to store this information: bad design.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
reubeuleu
PostPosted: Tue Feb 10, 2009 3:30 am    Post subject: Reply with quote

Newbie

Joined: 28 Jan 2009
Posts: 3

Thanks for your answer.

Finally I've not set the correlation ID length (hte corresponding API doesn't exists).
I've just added spaces to make this length = 24 bytes
I haven't encountered translation problem, I think the qManager takes charge of it !
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Feb 10, 2009 3:42 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

reubeuleu wrote:
I haven't encountered translation problem, I think the qManager takes charge of it !


Oh no it doesn't. The queue manager (as my most worthy associate has already pointed out) considers the field an array of bytes and passes it, unmodified, from queue manager to queue manager, irrespective of platform.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Correlationid length
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.