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 » MQ weblogic biding : correlation id

Post new topic  Reply to topic
 MQ weblogic biding : correlation id « View previous topic :: View next topic » 
Author Message
AkankshA
PostPosted: Thu Apr 10, 2008 11:06 pm    Post subject: MQ weblogic biding : correlation id Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Hi

A quickie for you all.....

i have MQ JMS binding for sending msgs from MQ queue to weblogic queue and vice versa.. as mentioned in http://www.ibm.com/developerworks/websphere/library/techarticles/0604_kesavan/0604_kesavan.html


the concern is that the correlation id of JMS header is not getting copied to MQ request... its coming as blank...

do i nee to explicitly do this in my MDB code ???
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
marcin.kasinski
PostPosted: Fri Apr 11, 2008 1:17 am    Post subject: Re: MQ weblogic biding : correlation id Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

AkankshA wrote:

do i nee to explicitly do this in my MDB code ???



Yes.

In you MDB you have to copy msgid of request to correlid of reply.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
AkankshA
PostPosted: Fri Apr 11, 2008 1:21 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore



i do not want msg id in correl id

i want correl id in correl id

but as far as i know the entire MQMD header(rest of props) is created using JMS header properties... why different for correl id
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
marcin.kasinski
PostPosted: Fri Apr 11, 2008 1:32 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

AkankshA wrote:


i do not want msg id in correl id

i want correl id in correl id

but as far as i know the entire MQMD header(rest of props) is created using JMS header properties... why different for correl id



Can you explain what you are trying to do (maybe code example) ?

I don't want to read this entire article.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
AkankshA
PostPosted: Fri Apr 11, 2008 1:52 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

i have MQ JMS file based binding for sending msgs from MQ queue to weblogic queue and vice versa.. using an mdb

I want to have the same correlation id as in JMS header and in MQMD


for that do i need to set it in mdb or not..

my guess is i shd not..

need confirmation
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
marcin.kasinski
PostPosted: Fri Apr 11, 2008 2:42 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

AkankshA wrote:
i have MQ JMS file based binding for sending msgs from MQ queue to weblogic queue and vice versa.. using an mdb

I want to have the same correlation id as in JMS header and in MQMD


for that do i need to set it in mdb or not..

my guess is i shd not..

need confirmation


I still don't get it ?
JMS MQ header represents native MQMD header.
Are you talking about :

Code:
replymessage.setJMSCorrelationID(requestmsg.getJMSCorrelationID());

_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
AkankshA
PostPosted: Fri Apr 11, 2008 2:50 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

My application is putting a message on weblogic queue, this message has JMSCorrelationID set

from there my mdb picks the message and using file based JNDI it puts it to MQ Queue..


now what should be the value of correlId in MQMD header of the message, on MQ.. ll it be same as JMSCorrelationID or ll it be blank...
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
marcin.kasinski
PostPosted: Fri Apr 11, 2008 3:02 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

AkankshA wrote:
My application is putting a message on weblogic queue, this message has JMSCorrelationID set

from there my mdb picks the message and using file based JNDI it puts it to MQ Queue..


now what should be the value of correlId in MQMD header of the message, on MQ.. ll it be same as JMSCorrelationID or ll it be blank...



Why do you set JMSCorrelationID in your request ?


Basic request – response scenario is:

- request application sends request
- response application gets request message , process and sends reply by copying message id of request message to correlationid of reply message.

Is it file, LDAP, WAS or another JNDI it doesn’t matter.


Is it answer to your question or I still don’t get it
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Fri Apr 11, 2008 3:10 pm    Post subject: Re: MQ weblogic biding : correlation id Reply with quote

Grand High Poobah

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

AkankshA wrote:
Hi

A quickie for you all.....

i have MQ JMS binding for sending msgs from MQ queue to weblogic queue and vice versa.. as mentioned in http://www.ibm.com/developerworks/websphere/library/techarticles/0604_kesavan/0604_kesavan.html


the concern is that the correlation id of JMS header is not getting copied to MQ request... its coming as blank...

do i nee to explicitly do this in my MDB code ???

In your MDB you should inspect the JMSCorrelIdAsBytes and compare it to the MQCI_NONE value.

I assume here that you are in a request response scenario.

Short from going to the IBM native properties which would tell you whether to use msgid or correl id you can use following rule:

if the correlid is initial (MQCI_NONE) set the message id. If the correlid is not initial set the correlid.

In any case it is your MDB's responsability to set the correlid field on the outgoing response message, and yes YOU need to code for it.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
kevinQ
PostPosted: Fri Apr 11, 2008 5:32 pm    Post subject: Reply with quote

Novice

Joined: 09 Apr 2008
Posts: 21

With my limited experience with JMS, I think the JMS correlation_id is in the RFH2 header of MQ message, cotained in <cid></cid>. It may or may not be the same as the MQ correlation_id in the MQMD.

CorrelationId in MQMD is 24 bytes long, but I don't think there is such a limitation with JMS correlation_id.

Are you using a non-JMS application to read the JMS message? If both side are JMS applications, setJMSCorrelationId and getJMSCorrelationId should work seamless together. I don't think I understand what you problem is.
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 » MQ weblogic biding : correlation id
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.