[jboss-user] [EJB 3.0] - Callbacks with in Message Driven Pojo?

boilerk19 do-not-reply at jboss.com
Thu Jul 26 16:47:26 EDT 2007


I like the idea of the MDP for simplifying the code for async calls, but in the examples that I see, there is no way for the client to know when the call has completed -- other than polling for some resultant type of data.

Has there been any thought to being to pass some sort of callback object that the consumer can invoke, (callback probably tied to some temporary queue that the client who issued the original async call is listening on)?

In the examples, it is mentioned regarding using the @CurrentMessage to get access to the JMS message including the ReplyTo field, yet I don't see any mechanism of how the sender can set the replyTo so that they can setup their own callback listener on that field.

Additionally, considering that internally an ObjectMessage is being created/sent, does it even specify a replyTo arg?

thanks

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

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



More information about the jboss-user mailing list