Results 1 to 2 of 2

Thread: jms adapter channel parameter gone ?

  1. #1
    Join Date
    May 2008
    Posts
    6

    Default jms adapter channel parameter gone ?

    Hi there,

    I've been checking out the latest subversion head of Integration and playing around with it. It seems that the "channel" parameter for the JMS channel adapters is suddenly missing ?? Is this a bug, or have there been changes to the way this is handled ?

    <xsd:complexType name="jmsAdapterType">
    <xsd:annotation>
    <xsd:documentation>
    Common configuration for JMS-based adapters.
    </xsd:documentation>
    </xsd:annotation>
    <xsd:attribute name="id" type="xsd:string"/>
    <xsd:attribute name="jms-template" type="xsd:string"/>
    <xsd:attribute name="connection-factory" type="xsd:string"/>
    <xsd:attribute name="destination" type="xsd:string"/>
    <xsd:attribute name="destination-name" type="xsd:string"/>
    </xsd:complexType>

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

    Default

    One of the major changes in M4 is that "sources" and "source-endpoints" have been separated. In other words a source-endpoint is just responsible for connecting a source to a channel. The source implementations are responsible for providing a receive() method that returns Messages.

    The new configuration of a JMS source would be as follows:
    Code:
    <source-endpoint channel="channel" source="jmsSource">
        <schedule period="1000"/>
    </source-endpoint>
    
    <jms-source id="jmsSource" destination="myQueue"/>
    Note that the jms-source should only be used when you want polling behavior. Otherwise the new jms-gateway provides an event-driven alternative.

    Hope that helps.

Posting Permissions

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