JBoss ESB
  1. JBoss ESB
  2. JBESB-380

Custom composer for GatewayListeners not working

    Details

    • Type: Bug Bug
    • Status: Closed Closed (View Workflow)
    • Priority: Critical Critical
    • Resolution: Done
    • Affects Version/s: 4.0 CR2
    • Fix Version/s: 4.0
    • Component/s: Configuration, Rosetta
    • Security Level: Public (Everyone can see)
    • Labels:
      None
    • Similar Issues:
      Show 9 results 

      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.

        Activity

        Hide
        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
        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:
            Kurt Stam
            Reporter:
            Bernard Tison
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: