Time for action – opening the Chapter3 app

Follow these steps:

  1. Click on the File menu and select Import.
  2. Now choose Existing Projects into workspace and select the folder where the book samples have been extracted:
    Time for action – opening the Chapter3 app
  3. Then click on Finish. Now have a look at the jboss-esb.xml file. You can see that it has a single service and action as defined in the following snippet:
    <jbossesb parameterReloadSecs="5"
     xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsd"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsdhttp://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.3.0.xsd">
      <providers>
        <jms-provider connection-factory="ConnectionFactory"
                      name="JBossMQ">
          <jms-bus busid="chapter3GwChannel">
            <jms-message-filter dest-name="queue/chapter3_Request_gw"
                                dest-type="QUEUE"/>
          </jms-bus>
          <jms-bus busid="chapter3EsbChannel">
            <jms-message-filter dest-name="queue/chapter3_Request_esb"
                                dest-type="QUEUE"/>
          </jms-bus>
        </jms-provider>
      </providers>
      <services>
        <service category="Chapter3Sample"
                 description="A template for Chapter3"
                 name="Chapter3Service">
          <listeners>
            <jms-listener busidref="chapter3GwChannel"
                          is-gateway="true"
                          name="Chapter3GwListener"/>
            <jms-listener busidref="chapter3EsbChannel"
                          name="Chapter3Listener"/>
          </listeners>
          <actions mep="OneWay">
            <action class="org.jboss.soa.esb.actions.SystemPrintln"
                    name="PrintBefore">
              <property name="message"/>
              <property name="printfull" value="true"/>
            </action>
          </actions>
        </service>
      </services>
    </jbossesb>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.244.201