Announcement Announcement Module
Collapse
No announcement yet.
jms adapter channel parameter gone ? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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.

    Comment

    Working...
    X