6 Replies Latest reply on Aug 3, 2007 12:58 PM by Claudio R

    How can I create a new service from two existing service?

    Claudio R Novice

      How can I create a new service from two existing service?( -> Service A -> Service B -> )?
      I have tried with this code

      jboss-esb.xml

      <?xml version = "1.0" encoding = "UTF-8"?>
      <jbossesb
       xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.1.xsd"
       parameterReloadSecs="5">
       <providers>
       <jms-provider name="JBossMQ" connection-factory="ConnectionFactory" jndi-context-factory="org.jnp.interfaces.NamingContextFactory" jndi-URL="localhost">
       <jms-bus busid="sabEsbChannel">
       <jms-message-filter dest-type="QUEUE" dest-name="queue/sab_queue" />
       </jms-bus>
       <jms-bus busid="saEsbChannel">
       <jms-message-filter dest-type="QUEUE" dest-name="queue/sa_queue" />
       </jms-bus>
       <jms-bus busid="sbEsbChannel">
       <jms-message-filter dest-type="QUEUE" dest-name="queue/sb_queue" />
       </jms-bus>
       </jms-provider>
       </providers>
       <services>
       <service category="Cat" name="SAB" description="Static router">
       <listeners>
       <jms-listener name="sabsabEsbChannel" busidref="sabEsbChannel" maxThreads="1" />
       </listeners>
       <actions>
       <action name="routeAction" class="org.jboss.soa.esb.actions.StaticRouter">
       <property name="destinations">
       <route-to service-category="Cat" service-name="SA" />
       </property>
       </action>
       <action name="routeAction" class="org.jboss.soa.esb.actions.StaticRouter">
       <property name="destinations">
       <route-to service-category="Cat" service-name="SB" />
       </property>
       </action>
       </actions>
       </service>
       <service category="Cat" name="SA" description="Servico A">
       <listeners>
       <jms-listener name="sasaEsbChannel" busidref="saEsbChannel" maxThreads="1" />
       </listeners>
       <actions>
       <action name="Executar" class="com.SAAction" process="executar"/>
       </actions>
       </service>
       <service category="Cat" name="SB" description="Servico B">
       <listeners>
       <jms-listener name="sbsbEsbChannel" busidref="sbEsbChannel" maxThreads="1" />
       </listeners>
       <actions>
       <action name="Executar" class="com.SBAction" process="executar"/>
       </actions>
       </service>
       </services>
      </jbossesb>


      But using service SAB only service SA was executed
      How can I "concat" two services?
      Thanks