This content has been marked as final.
Show 3 replies
-
1. Re: Some more comments on examples so far
gaohoward Apr 1, 2009 9:39 AM (in response to timfox)Ok, I need another round of refactoring the readmes and code. I hate to do it again but Tim's points are right (and of high expectation as always). :)
-
2. Re: Some more comments on examples so far
timfox Apr 2, 2009 4:35 AM (in response to timfox)Another comment on the request-reply example-
I don't think this is very clear still. It would be better to handle the request and send back the response using a message listener, then you can send and consume several messages without having to do everything on the same thread.
Also setting the JMSCorrelationID when sending the request doesn't make sense to me. It only needs to be set when sending the response back. -
3. Re: Some more comments on examples so far
gaohoward Apr 2, 2009 6:13 AM (in response to timfox)I don't think this is very clear still. It would be better to handle the request and send back the response using a message listener, then you can send and consume several messages without having to do everything on the same thread.
Agree, using a message listener is more meaningful.Also setting the JMSCorrelationID when sending the request doesn't make sense to me. It only needs to be set when sending the response back.
Yes the ID is used to indicate which message the reply messages is for which request message. If not set it will be null.