posted 18 years ago
Hi All,
Can some expert explain to me the difference between the One-Way RPC mode and Non-Blocking RPC invocation mode? and in real life example to use the One-Way RPC mode and Non-Blocking RPC invocation mode?
In BulePrint Chapter 3, page 46 states JAX-RPC supports three modes of operations:
1.Synchronoous request-response mode
2.One-Way RPC mode - ...No return value or exception is expected on this call.
3.Non-Blocking RPC invocation mode - ..Later, the client processing the remote method returned by performing a blocked receive call or by polling for the return value.
Also, on BulePring page 96 there is a diagram indicationg the Travel Agency Service Asynchornous iteraction example.
From the travel agency example in this diagram, does it use the Non-Blokcing RPC invocation mode or One-Way RPC mode? To me, the Non-Blocking RPC defination is more fit and make sense here because the agency need to get the response eventually anyway by polling periodically.
Then, in the real world, what other good example to fit for the One-Way RPC mode? A lot of books do not distinciate the One-Way or Non-Blocking mode clearly. Instead they just say ansyncronized One-Way design combined with JMS to accomodiate with it.
I'm confused... Please shed some light on this...