[jboss-dev-forums] [Design of JBoss Remoting, Unified Invokers] - One-way messages in Remoting 3

david.lloyd@jboss.com do-not-reply at jboss.com
Wed Nov 21 11:34:49 EST 2007


I've been thinking about what Trustin said when we met a number of weeks ago, about one-way messages, delivery guarantee, and how it is implemented.

Trustin's point back then was that a one-way message is actually very similar to a Request.  It is simply a Request with no return value, or a return value that is ignored.

Using Requests one can simulate all the desirable delivery guarantee levels.  The "fire and forget" model can be done by doing an asynchronous send and just ignoring the returned FutureReply.  Delivery guarantee can be done by using a synchronous invocation, and having the remote service just return the reply immediately (before processing the message).  And a guaranteed completion can be done just by doing a regular request (but with no reply value).

So I'm thinking that these interfaces should be unified.  It will cut down on code and simplify the implementation of services as well.

Thoughts?

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

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



More information about the jboss-dev-forums mailing list