Is it possible to use bind Asynch Request Reply to a POJI using Spring
Remoting?

Something like:
//Interface whatever...
public Future asyncRequestReply( String arg );


Of the 4 messaging patters I can get 3 to work and bind them to an Interface
using Spring Remoting, but it's not clear to me that this last pattern is
possible.

How I imagine it working:

public Future<T> asyncRequestReply( String arg );

Of course Keep the same inteface the Server/Impl but return a Dummy Future
of same type.

public Future<ResultObj> asyncRequestReply( String arg )
{
   //Do stuff
   ResultObj result = new ResultObj(...etc);
   return( new DummyFuture( result ) );
}

Then have some advice that extracts the result from the Dummy Future and
sends it on it's way as if it was any other return type...

???

-- 
View this message in context: 
http://www.nabble.com/Asynch-Request-Reply-Bound-to-Spring-Remoting-tp25375427p25375427.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to