Results 1 to 2 of 2

Thread: JmsSource

  1. #1
    Join Date
    Jun 2008
    Location
    Zurich, Switzerland - Freiburg i. Breisgau, Germany
    Posts
    102

    Default JmsSource

    Hi all,

    currently I am evaluating for a new integration framework and this one looks very good.

    Now I am trying to retrieve jms messages by configuring the jms-source. In your documentation for M3 it was like:

    <jms-source connection-factory="connFactory" destination="inQueue" channel="in1"/>

    Now in M4 it is like this:

    <jms-source id="jmsSource" connection-factory="connFactory" destination="inQueue" />

    No I wonder to which channel the incoming jms messages (from the inQueue) are sent to ?

    Thanks Tai

  2. #2
    Join Date
    Oct 2007
    Location
    Toronto, ON
    Posts
    90

    Default

    Quote Originally Posted by ttruong View Post
    Hi all,

    currently I am evaluating for a new integration framework and this one looks very good.

    Now I am trying to retrieve jms messages by configuring the jms-source. In your documentation for M3 it was like:

    <jms-source connection-factory="connFactory" destination="inQueue" channel="in1"/>

    Now in M4 it is like this:

    <jms-source id="jmsSource" connection-factory="connFactory" destination="inQueue" />

    No I wonder to which channel the incoming jms messages (from the inQueue) are sent to ?

    Thanks Tai
    Hey Tai,

    Thanks for evaluating SI.

    If you notice, M4 has introduced the notion of a SourceEndpoint, which is the one that actually does the polling and sending to channels.
    Essentially what you need is to ad:

    Code:
    <source-endpoint source="jmsSource" channel="exampleChannel">
        <schedule period="30000"/>
    </source-endpoint>
    For any other details, please read the "Configuring Adapters" part in section 4.2 of the reference manual.

    Regards,
    Marius
    Marius Bogoevici,
    Spring Integration Committer

Posting Permissions

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