[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Remote replyto functionality - Bridge configuration in p

timfox do-not-reply at jboss.com
Mon Jun 11 12:14:49 EDT 2007


Interestintg ideas, some thoughts:

Regading the correlation id approach, wo we really need to automatically correlate message ids from server 1 with message ids from server 2?

One other possibility would be for the JBM bridge to take the old message id (the message id before sending to the second server) and set it is a property of the message (with a key JBossMessage.JBM_OLD_MESSAGE_ID (or whatever)).

The receiver of the message on the second server then has access to this property and can set it as the JMSCorrelationID of the response message. This would avoid the bridge having to maintain its own lookup map.

The JBM_OLD_MESSAGE_ID could even be chained, if the message has been routed through several servers before arriving at its destination, so it would actually be a set of message ids.

Regarding the temporary queue approach, yes this could work and is quite a nice idea. However, the tricky bit would knowing whether you'd already created a temporary queue on the remote server for a particular message, since you don't want to create a new temp queue on *every* message send, with a temp queue request/response model you typicall use the same remote queue for the whole sender's session. Also we would need to know when it is safe to delete the remote temp queue - this might be tricky too.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4053177#4053177

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4053177



More information about the jboss-dev-forums mailing list