4 Replies Latest reply on Sep 29, 2010 11:08 AM by tmarks

    Action not always called?

    tmarks

      I am seeing a case where my custom action is called only every other time.

       

      Starting with the JBoss ESB helloworld quickstart, I simply copied MyJMSListenerAction.java to MyJMSAction.java.

      I then added a new action to jboss-esb.xml that pointed to the new class.

      After re-deploying, I noticed the new action only gets called every other time I run 'ant runtest'.

      What am I doing wrong?

       

      Server: jboss-6.0.0.20100216-M2 with jbossesb-4.8, java6

        • 1. Re: Action not always called?
          tcunning

          Can you post your jboss-esb.xml?

          • 2. Re: Action not always called?
            tmarks

            As requested, here is my jboss-esb.xml

             

            <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">
                          <jms-bus busid="quickstartGwChannel">
                              <jms-message-filter
                                  dest-type="QUEUE"
                                  dest-name="queue/quickstart_helloworld_Request_gw"
                               />
                          </jms-bus>
                          <jms-bus busid="quickstartEsbChannel">
                              <jms-message-filter
                                  dest-type="QUEUE"
                                  dest-name="queue/quickstart_helloworld_Request_esb"
                              />
                          </jms-bus>

             

                      </jms-provider>
                  </providers>

             

                  <services>
                    <service
                            category="FirstServiceESB"
                            name="SimpleListener"
                            description="Hello World">
                        <listeners>
                            <jms-listener name="JMS-Gateway"
                                busidref="quickstartGwChannel"
                                is-gateway="true"
                            />
                            <jms-listener name="helloWorld"
                                          busidref="quickstartEsbChannel"
                            />
                        </listeners>
                        <actions mep="OneWay">
                               <action name="action1"
                                    class="org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSListenerAction"
                                    process="displayMessage"
                                    />
                               <action name="action1a"
                                    class="org.jboss.soa.esb.samples.quickstart.helloworld.MyJMSAction"
                                    process="displayMessage"
                                    />
                                <action name="action2" class="org.jboss.soa.esb.actions.SystemPrintln">
                                  <property name="printfull" value="false"/>
                                </action>
                                <!-- The next action is for Continuous Integration testing -->
                                <action name="testStore" class="org.jboss.soa.esb.actions.TestMessageStore"/>
                        </actions>
                    </service>
                  </services>

             

            </jbossesb>

            • 3. Re: Action not always called?
              hauch

              Do you by any change have renamed the queues - are there more than one jms/esb endpoint on server:port/contract?

              • 4. Re: Action not always called?
                tmarks

                After changing the queue name, the action is called every time (as expected).

                Thanks to Morten for the suggestion.