Jun 17th, 2006, 02:44 PM
Async JAX-RPC with Spring (or Lingo)?
I have an existing Axis Web service that is called with my Spring JAX-RPC client. The service end point basically puts a message on a queue and holds all the passwords and queue information on the server centrally for security.
My client, however, needs to be asynchronous as not to affect the performance of the client should something go down or some other anomoly. Without going to JEE 5.0 and JAX-RPC 2.0, is there a way that Spring can make this call to the web service asynchronously?
I've looked at Lingo a bit, but unfortunately the examples are down on the site. Also, I'm not sure I understand where the Lingo service endpoint would live...on a web server? Could Lingo just send the message on the queue I have directly without the service endpoint, but then how is that different from a JMS client?
Jun 18th, 2006, 11:53 PM
Jun 19th, 2006, 05:40 PM
Instead of introducing YAF (yet another framework) I opted to thread the process of sending the request in the client proxy, thus making it asynchronous. When I have more time, I'll have to look into Lingo. It sounds interesting but I imagine our vendor TIBCO can support this natively.
Jun 19th, 2006, 07:31 PM
Making the call in another thread on the client might be okay in your case however realize that the call is still synchronous in the thread started and if the call is a long running process, then it's susceptible to network timeouts or JAX-RPC api timeouts.
This would not be the case with a truly asynchronous solution.