You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by liucong <li...@gmail.com> on 2009/07/23 18:57:33 UTC

request-response patterns.

Hi,

Some information about JMS Correlation ID patten and Message ID pattern
on request-response patterns
(http://edocs.bea.com/alsb/docs25/interopjms/MsgIDPatternforJMS.html).

By digging into the code about jms-transport, I know the current
jms-transport uses the Correlation ID Pattern. But the SOAP/JMS
specification uses Message ID Pattern.

What should I do?
1. To keep Correlation ID Pattern. But it is not compatible with the
specification.
2. To use Message ID Pattern. I see some code which use spring-jms, I
can't get the id of the message which is sent by spring-jms. I don't
know how to get the message id which is used to correlated the response
message.

Thank you for your sugguest in advance.

liu

Re: request-response patterns.

Posted by liucong <li...@gmail.com>.
Hi,
If the client doesn't configure something about the CorrelationID, I'll
use MessageId pattern.

The current implement use CorrelationId by default. So I think I should
change the rule. I use MessageId pattern by default.


Christian Schneider wrote:
> Hi Liu,
>
> the current code uses the MessageId Patternif the Correlation Id is empty.
> It sends the response to the specified replyTo queue. For CorrelationId
> Pattern it would always use the same queue.
>
> Greetings
>
> Christian
>
> liucong schrieb:
>   
>> Hi,
>>
>> Some information about JMS Correlation ID patten and Message ID pattern
>> on request-response patterns
>> (http://edocs.bea.com/alsb/docs25/interopjms/MsgIDPatternforJMS.html).
>>
>> By digging into the code about jms-transport, I know the current
>> jms-transport uses the Correlation ID Pattern. But the SOAP/JMS
>> specification uses Message ID Pattern.
>>
>> What should I do?
>> 1. To keep Correlation ID Pattern. But it is not compatible with the
>> specification.
>> 2. To use Message ID Pattern. I see some code which use spring-jms, I
>> can't get the id of the message which is sent by spring-jms. I don't
>> know how to get the message id which is used to correlated the response
>> message.
>>
>> Thank you for your sugguest in advance.
>>
>> liu
>>
>>   
>>     
>
>
>   


Re: request-response patterns.

Posted by Christian Schneider <ch...@die-schneider.net>.
Hi Liu,

the current code uses the MessageId Patternif the Correlation Id is empty.
It sends the response to the specified replyTo queue. For CorrelationId
Pattern it would always use the same queue.

Greetings

Christian

liucong schrieb:
> Hi,
>
> Some information about JMS Correlation ID patten and Message ID pattern
> on request-response patterns
> (http://edocs.bea.com/alsb/docs25/interopjms/MsgIDPatternforJMS.html).
>
> By digging into the code about jms-transport, I know the current
> jms-transport uses the Correlation ID Pattern. But the SOAP/JMS
> specification uses Message ID Pattern.
>
> What should I do?
> 1. To keep Correlation ID Pattern. But it is not compatible with the
> specification.
> 2. To use Message ID Pattern. I see some code which use spring-jms, I
> can't get the id of the message which is sent by spring-jms. I don't
> know how to get the message id which is used to correlated the response
> message.
>
> Thank you for your sugguest in advance.
>
> liu
>
>   


Re: request-response patterns.

Posted by Willem Jiang <wi...@gmail.com>.
Hi,

I think its OK to use the Message Id pattern by default for the
interoperation
with the other SOAP/JMS implementation, if there is no correlation id is set
 on the JMSMessageHeader.

Willem

liucong wrote:
> Hi,
> 
> Should I change to use Message ID Pattern and make it compatible with
> the specification?
> 
> 
> liucong wrote:
>> Hi,
>>
>> Some information about JMS Correlation ID patten and Message ID pattern
>> on request-response patterns
>> (http://edocs.bea.com/alsb/docs25/interopjms/MsgIDPatternforJMS.html).
>>
>> By digging into the code about jms-transport, I know the current
>> jms-transport uses the Correlation ID Pattern. But the SOAP/JMS
>> specification uses Message ID Pattern.
>>
>> What should I do?
>> 1. To keep Correlation ID Pattern. But it is not compatible with the
>> specification.
>> 2. To use Message ID Pattern. I see some code which use spring-jms, I
>> can't get the id of the message which is sent by spring-jms. I don't
>> know how to get the message id which is used to correlated the response
>> message.
>>
>> Thank you for your sugguest in advance.
>>
>> liu
>>
>>   
> 
> 


Re: request-response patterns.

Posted by liucong <li...@gmail.com>.
Hi,

Should I change to use Message ID Pattern and make it compatible with
the specification?


liucong wrote:
> Hi,
>
> Some information about JMS Correlation ID patten and Message ID pattern
> on request-response patterns
> (http://edocs.bea.com/alsb/docs25/interopjms/MsgIDPatternforJMS.html).
>
> By digging into the code about jms-transport, I know the current
> jms-transport uses the Correlation ID Pattern. But the SOAP/JMS
> specification uses Message ID Pattern.
>
> What should I do?
> 1. To keep Correlation ID Pattern. But it is not compatible with the
> specification.
> 2. To use Message ID Pattern. I see some code which use spring-jms, I
> can't get the id of the message which is sent by spring-jms. I don't
> know how to get the message id which is used to correlated the response
> message.
>
> Thank you for your sugguest in advance.
>
> liu
>
>