views:

375

answers:

1

Is it possible to invoke Java RMI asynchronously? I'd like my RMI call to return immediately and for the server to invoke a callback once a task is completed.

I'd currently using RMI support from Spring framework, and i couldn't find any documentation describing it in spring, I suspect I'll need to implement it myself. Please provide examples if possible.

Thanks in advance!

+1  A: 

RMI is synchronous and doesn't support callbacks as far as I know.

JMS is the Java EE way to make asynch calls. If you're using Spring, it would be a message-driven POJO.

Another place to look, since you're already using Spring, is either Spring Batch or Spring Integration. I'd try either of those before I wrote it myself.

But if that doesn't do it for you, your suspicion is correct - you'll have to implement it yourself.

duffymo
thanks for the pointers, will check them out.
Anthony Si