2 Replies Latest reply on May 2, 2007 1:28 PM by ldimaggio

    Creating a new gateway - odd problems unless service definit

    ldimaggio

      I'm seeing this problem with 4.2.MR1 - in creating a new gateway, I'm seeing an error such as:

      EPR not found in registry

      For the service in question unless I include a non-gateway definition in the service. I'm then able to make use of the gateway listener and ignore the other one - but this isn't the right way to go.

      Has anyone seen a problem like this? Many thanks...

      jboss-esb.xml fragment:

      -------------------------------------------------------------
      <!-- Service to perform the actions of a wiretap -->
       <service category="wiretapCategory" name="wiretapService" description="Static Wiretap">
       <listeners>
       <jms-listener name="JMS-wiretapGateway" busidref="wiretapGwChannel" maxThreads="1" is-gateway="true" />
       <jms-listener name="wiretapESB" busidref="quickstartWireTapChannel" maxThreads="1" /> <!-- Unused -->
       </listeners>
       <actions>
       <action name="action1" class="quickstart.helloworld.MyJMSWiretapListenerAction" process="displayMessageReceived" />
       <action name="action2" class="quickstart.helloworld.MyJMSWiretapListenerAction" process="insertMessageToDestination" />
       <action name="action3" class="quickstart.helloworld.MyJMSWiretapListenerAction" process="insertMessageToWireTapOutput" />
       <action name="action4" class="quickstart.helloworld.MyJMSWiretapListenerAction" process="displayMessageWiretapOutput" />
       </actions>
       </service>
      -------------------------------------------------------------
      
      
      


        • 1. Re: Creating a new gateway - odd problems unless service def

          I have noticed the same thing. Even if the first one is a FTP gateway, for example, it doesn't seem to work unless you define a second JMS listener (you also have to define the gateways for both listeners):

          <listeners>
           <ftp-listener name="FtpGateway"
           busidref="helloFTPChannel"
           maxThreads="1"
           is-gateway="true"
           >
           <property name="pollLatencySeconds" value="5"/>
           </ftp-listener>
           <jms-listener name="helloWorldFileAction"
           busidref="babelgomEsbChannelFTP"
           maxThreads="1"
           />
           </listeners>


          I think it has to do with the ESB aware/unaware gateways. The first is the unaware one, the second would be the ESB aware gateway. But maybe I am wrong...

          • 2. Re: Creating a new gateway - odd problems unless service def
            ldimaggio

            Yes - thanks - i just learned today that for each gateway listener, another native.backend listener must be created...