[jira] Commented: (SM-744) Request/Response for jms through MessageID/CorrelationID

2006-11-12 Thread Martin Landua (JIRA)
[ 
https://issues.apache.org/activemq/browse/SM-744?page=comments#action_37420 ] 

Martin Landua commented on SM-744:
--

Grant,

consider an external client, which sends a request to a servicemix application 
through jms and expects an answer to some reply queue, which the client 
provides. Please note that I am talking about an external client, not another 
servicemix application.

Now, one option for the client is to provide a correlation id that it expects 
to be returned with the response. That is one pattern, which also servicemix 
uses as you correctly pointed out in MultiplexingProviderProcessor(161) and 
StandardProviderProcessor(101). Everything is fine for this scenario.

Another pattern could be that the client does not create an arbitrary 
correlation id but instead it expects servicemix to return the message id of 
the jms request message (not any exchange id) to be returned as the correlation 
id in the response jms message. Actually we do have a client which relies on 
this behavior. Currently, servicemix does not support that and I was thinking 
to add this as a configurable feature.

Hope this clarifies my question.

Best regards
Martin

 Request/Response for jms through MessageID/CorrelationID
 

 Key: SM-744
 URL: https://issues.apache.org/activemq/browse/SM-744
 Project: ServiceMix
  Issue Type: Improvement
  Components: servicemix-jms
 Environment: All platforms
Reporter: Martin Landua
Priority: Minor

 The servicemix-jms component assumes that the request/reponse pattern is 
 implemented by the client by using some artificial correlation id as the 
 connection between the messages (as described in 
 http://activemq.org/site/how-should-i-implement-request-response-with-jms.html).
 However, there are cases where the client assumes that the server sets the 
 correlation id of the response to the message id (!) of the request. 
 Currently, the servicemix-jms component does not support this, but it would 
 be convenient if it were configurable.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (SM-744) Request/Response for jms through MessageID/CorrelationID

2006-11-12 Thread Grant McDonald (JIRA)
[ 
https://issues.apache.org/activemq/browse/SM-744?page=comments#action_37422 ] 

Grant McDonald commented on SM-744:
---

That clarifies things quite a bit.  I can see that in certain circumstances 
that this would be useful.  The only thing to keep in mind is that such 
configuration is static for the lifetime of the endpoint - but I guess your 
client isn't going to be expecting it to be any different.  I would like to 
hear what Guillaume has to say about such configuration options and whether 
it's appropriate or not.  Can you please attach a patch of your changes?

 Request/Response for jms through MessageID/CorrelationID
 

 Key: SM-744
 URL: https://issues.apache.org/activemq/browse/SM-744
 Project: ServiceMix
  Issue Type: Improvement
  Components: servicemix-jms
 Environment: All platforms
Reporter: Martin Landua
Priority: Minor

 The servicemix-jms component assumes that the request/reponse pattern is 
 implemented by the client by using some artificial correlation id as the 
 connection between the messages (as described in 
 http://activemq.org/site/how-should-i-implement-request-response-with-jms.html).
 However, there are cases where the client assumes that the server sets the 
 correlation id of the response to the message id (!) of the request. 
 Currently, the servicemix-jms component does not support this, but it would 
 be convenient if it were configurable.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (SM-744) Request/Response for jms through MessageID/CorrelationID

2006-11-12 Thread Guillaume Nodet (JIRA)
[ 
https://issues.apache.org/activemq/browse/SM-744?page=comments#action_37427 ] 

Guillaume Nodet commented on SM-744:


I do not see any reason to not include the patch if it solves an actual use 
case.

 Request/Response for jms through MessageID/CorrelationID
 

 Key: SM-744
 URL: https://issues.apache.org/activemq/browse/SM-744
 Project: ServiceMix
  Issue Type: Improvement
  Components: servicemix-jms
 Environment: All platforms
Reporter: Martin Landua
Priority: Minor

 The servicemix-jms component assumes that the request/reponse pattern is 
 implemented by the client by using some artificial correlation id as the 
 connection between the messages (as described in 
 http://activemq.org/site/how-should-i-implement-request-response-with-jms.html).
 However, there are cases where the client assumes that the server sets the 
 correlation id of the response to the message id (!) of the request. 
 Currently, the servicemix-jms component does not support this, but it would 
 be convenient if it were configurable.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (SM-744) Request/Response for jms through MessageID/CorrelationID

2006-11-12 Thread Martin Landua (JIRA)
[ 
https://issues.apache.org/activemq/browse/SM-744?page=comments#action_37428 ] 

Martin Landua commented on SM-744:
--

You are right, this would be a static configuration, but the client in fact 
would not expect the server's behavior to change at runtime.

I attached a patch for this issue.

Regards
Martin

 Request/Response for jms through MessageID/CorrelationID
 

 Key: SM-744
 URL: https://issues.apache.org/activemq/browse/SM-744
 Project: ServiceMix
  Issue Type: Improvement
  Components: servicemix-jms
 Environment: All platforms
Reporter: Martin Landua
Priority: Minor
 Attachments: servicemix-jms-patch


 The servicemix-jms component assumes that the request/reponse pattern is 
 implemented by the client by using some artificial correlation id as the 
 connection between the messages (as described in 
 http://activemq.org/site/how-should-i-implement-request-response-with-jms.html).
 However, there are cases where the client assumes that the server sets the 
 correlation id of the response to the message id (!) of the request. 
 Currently, the servicemix-jms component does not support this, but it would 
 be convenient if it were configurable.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira




[jira] Commented: (SM-744) Request/Response for jms through MessageID/CorrelationID

2006-11-11 Thread Grant McDonald (JIRA)
[ 
https://issues.apache.org/activemq/browse/SM-744?page=comments#action_37417 ] 

Grant McDonald commented on SM-744:
---

Martin,

Could you please expand upon the circumstances/scenarios where this occurs?  
The only places I found the JMS correlation id being set to the exchange id was 
in MultiplexingProviderProcessor(161) and StandardProviderProcessor(101) which 
you would expect from messages coming from the NMR onto JMS and having an InOut 
MEP.  Under what scenario is there an expectation in the client that the JMS 
correlation id will be a message exchange id?


 Request/Response for jms through MessageID/CorrelationID
 

 Key: SM-744
 URL: https://issues.apache.org/activemq/browse/SM-744
 Project: ServiceMix
  Issue Type: Improvement
  Components: servicemix-jms
 Environment: All platforms
Reporter: Martin Landua
Priority: Minor

 The servicemix-jms component assumes that the request/reponse pattern is 
 implemented by the client by using some artificial correlation id as the 
 connection between the messages (as described in 
 http://activemq.org/site/how-should-i-implement-request-response-with-jms.html).
 However, there are cases where the client assumes that the server sets the 
 correlation id of the response to the message id (!) of the request. 
 Currently, the servicemix-jms component does not support this, but it would 
 be convenient if it were configurable.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/activemq/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira