Jul 1st, 2010, 11:43 PM
jms adapter and gateway
I hava some questions about the jms adpater and gateway.
(1)The jms adapter only supports oneway pattern,not supoorts request/reply pattern .
(2)And the jms gateway only support request/reply pattern,but not supoorts oneway pattern .
I think the jms adapter and gateway both should support oneway and request/reply pattern .But they cannot support oneway and request/reply pattern ,why ?
Jul 6th, 2010, 12:41 PM
I am not sure i understand the question.
You use Gateway for by-directional communication
You use Adapter for uni-directional communication.
This is by design.
Jul 8th, 2010, 02:03 AM
Yes.you are right.
The JMS Gateway is used for by-directional communication.
The JMS Adapter is used for uni-directional communication.
I have an other question.
why the JMS Gateway cannot be designed for by-directional and uni-directional communications.And the JMS Adapter should by designed for by-directional and uni-directional communications too .
Because the webservice gateway and adapter both support by-directional and uni-directional communications.
So i think the jms gateway and adapter support them too,maybe my idea about this is incorrectness.
Jul 8th, 2010, 07:42 AM
There is no adapter in the WS, only gateways (inbound and outbound).
Having said that. . .
You have to look at this from a different perspective.
HTTP interaction is naturally by-directional: request -> response (there is always response)
JMS is always uni-directional: producer -> message -> consumer (there is never a response of any type).
If producer wants to get a reply from the consumer, then producer will become a consumer and consumer will become a producer and process repeats.
And even though we do have just channel-adapters for HTTP (and could for WS), those are just *ignoring* the inevitable response
Last edited by oleg.zhurakousky; Jul 8th, 2010 at 07:52 AM.
Jul 8th, 2010, 09:02 PM
I got it.
Thanks very much.