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

thomasra do-not-reply at jboss.com
Thu Jun 7 07:40:15 EDT 2007


It could be as simple as this perhaps (from inside the sendBatch method in Bridge):


  |             // Differentiate between messages that require a reply
  |             Destination originalDestination = msg.getJMSReplyTo();
  |             if(originalDestination == null) {            
  |             	producer.send(msg);            
  |             } else {
  |             	// This probably needs to be spawned in a separate thread so it doesn't block
  |             	QueueRequestor q = new QueueRequestor((QueueSession) targetSession, (Queue) producer.getDestination());
  |             	Message response = q.request(msg);
  |             	producer.send(originalDestination, response); // This isn't the correct producer, though
  |             }
  | 
  | 

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

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



More information about the jboss-dev-forums mailing list