Hi On Mon, Mar 14, 2011 at 9:33 PM, Harald Wellmann <[email protected]> wrote: > Is it possible to combine remoting by proxy > (http://camel.apache.org/spring-remoting.html) with asynchronous > request/reply (http://camel.apache.org/async.html) to achieve some sort of > equivalent to EJB 3.1 @Asynchronous invocations? > > > E.g. > > @Stateless > @Remote(CalculatorService.class) > public class CalculatorServiceImpl implements CalculatorService { > > @Asynchronous > public Future<Integer> add(int a, int b) { > // ... > } > } > > > If so, which transports are supported (JMS, HTTP, ...)? If not, is something > like this on the Camel roadmap at all? >
The ProducerTemplate API has methods for sending messages using Future. However AFAIK it's not implemented into the @Produce or @InOut @InOnly annotations of Camel We could maybe detect the return type is a Future, and offer support for that. I don't know how easy that would be. That said its my impression that its only a few Camel end users who needs to use the Future API. But if its not to troublesome to implement its of course a nice feature to have in Camel. Transparent proxy with the Future handle. > Best regards, > Harald > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
