Results 1 to 5 of 5

Thread: jms adapter and gateway

  1. #1
    Join Date
    Apr 2010
    Posts
    11

    Default jms adapter and gateway

    HI,All.

    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 ?

  2. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    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.

  3. #3
    Join Date
    Apr 2010
    Posts
    11

    Default

    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.

    Thanks!

    Charile

  4. #4
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

    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.

  5. #5
    Join Date
    Apr 2010
    Posts
    11

    Default

    Ok.

    I got it.

    Thanks very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •