Results 1 to 4 of 4

Thread: JMS Outbound Adapter

  1. #1
    Join Date
    Feb 2011
    Posts
    2

    Default JMS Outbound Adapter

    Hi,

    I want to achieve the following.

    MessageSplitter -> DirectChannel -> JMSOutboundAdapter -> *Something here to be able to publish one message (in my case a response message) to another JMS Destination only when the previous batch has been successfully put onto the JMS Destination.*

    The message splitter can return a list of individual messages (XML Strings in my case), I would then like this list (batch) to be published to an outbound JMS Destination and once complete I would like to be able to send a custom Response message (XML) to another JMS Destination to flag success.

    Not sure exactly how I can achieve this or if this is supported, any help would be appreciated.

    Cheers

  2. #2
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    Have you considered using an Aggregator for this?

    Another option you might want to consider, especially if you would like to track the state of your batch execution, is the Spring Batch project. It is very easy to use Spring Integration and Spring Batch together, and you will find some examples if you explore the project home page as well as blog.springsource.com.

  3. #3
    Join Date
    Feb 2011
    Posts
    2

    Default

    Thanks for that,

    I have another question, is it possible to specify an output channel for an OutboundChannelAdapter? Or to replicate that behaviour somehow?

    input channel -> outboundChannelAdapter (publish to JMS) -> output channel

    The Aggregator sounds good and so does Spring Batch (which I have used before). I will have a look into it.

  4. #4
    Join Date
    Oct 2005
    Location
    Boston, MA
    Posts
    2,840

    Default

    Yes, you should have a look at the JMS "outbound-gateway" rather than the outbound-channel-adapter. In Spring Integration, we use the terminology as such: channel-adapter = unidirectional (one-way); gateway = bidirectional (request/reply).

    HTH,
    Mark

Posting Permissions

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