[jboss-user] [Remoting] - How to make asynchronous calls using Transporter?

vivash do-not-reply at jboss.com
Wed Aug 23 16:48:53 EDT 2006


There is an example on one-way invocation (section 10.3) and callbacks (section 10.5), but both use the InvocationHandler to get the request. I wanted to find out if there is a similar way to do asynchronous and callbacks using transporter when I am using simple POJOs.

Basically, I would like to make a method call on a POJO and then return immediately. The server should be able to callback the Client once the results are ready. We need this in case when large reports are run,

1) Client calls a method passing a set of parameters
2) Server receives the request and spawns a thread. It immediately returns back to the Client so the Client is free to do other stuff.
3) When the request has been completed (report generated), the server will callback Client with the response.
4) Client gets the response and renders the report.

Any examples would be great.

Thanks.
-vivek

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

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



More information about the jboss-user mailing list