Uploaded image for project: 'JBoss ESB'
  1. JBoss ESB
  2. JBESB-380

Custom composer for GatewayListeners not working

    Details

      Description

      The GatewayListeners (FileGatewayListener, JmsGatewayListener, ..) allow for a custom message composer instead of the default one, by attaching an action element to the gateway service definition in jbossesb.xml. But this action element is not picked up by the GatewayGenerator and is not copied into the jbossesb-gateway.xml file. The GatewayListener doesn't find the action definition in its config tree and falls back to the default composer.

        Gliffy Diagrams

          Activity

          Hide
          kurtstam Kurt Stam added a comment -

          Moved the definition of the gateway composer class from the action element in an an attribute of the gateway.

          Now you can specify the custom composer class and method using properties on the listener, so do something like:

          <jms-listener name="JMS-Gateway"
          busidref="quickstartGwChannel"
          maxThreads="1"
          is-gateway="true"
          >
          <property name="composer-class" value="org.jboss.soa.esb.listeners.gateway.JmsGatewayListener"/>
          <property name="composer-process" value="process"/>
          </jms-listener>

          Show
          kurtstam Kurt Stam added a comment - Moved the definition of the gateway composer class from the action element in an an attribute of the gateway. Now you can specify the custom composer class and method using properties on the listener, so do something like: <jms-listener name="JMS-Gateway" busidref="quickstartGwChannel" maxThreads="1" is-gateway="true" > <property name="composer-class" value="org.jboss.soa.esb.listeners.gateway.JmsGatewayListener"/> <property name="composer-process" value="process"/> </jms-listener>

            People

            • Assignee:
              kurtstam Kurt Stam
              Reporter:
              bernard.tison Bernard Tison
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development