3 Replies Latest reply on Mar 10, 2008 10:58 AM by kconner

    JBoss ESB and Continuous integration

    itarc

      Hello,

      I found this lines in the helloworld example :

      <!-- The next action is for Continuous Integration testing -->
      <action name="testStore" class="org.jboss.soa.esb.actions.StoreMessageToFile"/>


      I am very interrested in continuous integration with jboss esb.

      I was first wondering how to configure the "StoreMessageToFile" because I can't see where the file goes.

      Moreover, is there something which explains or gives advices on how to use JBoss esb with continuous integration.

      Best regards.

        • 1. Re: JBoss ESB and Continuous integration
          kconner

          This is an old action and is no longer used for our CI. We have replaced this with an action that registers the messages with an MBean instead of relying of filesystems.

          The best place to look would be under our qa/quickstarts directory, the tests there demonstrate how we link into the MBean.

          • 2. Re: JBoss ESB and Continuous integration
            itarc

            Hello,

            That looks more complex. Why didn't you keep the "storeMessageToFile" class that looks simple and reliable to me.

            I had a look at the qa/quickstarts directory of the 4.2.1GA-src, the test classes use something like this:

            SendMessage()
            ....
            Hashtable<String, String> theTable = Helpers.getMessageString(LOG_FILE);
            
            ....
            assertEquals(.......);


            Is that what you were thinking of or have I the wrong source version. I can't see the link with MBean.




            • 3. Re: JBoss ESB and Continuous integration
              kconner

               

              "Itarc" wrote:
              That looks more complex. Why didn't you keep the "storeMessageToFile" class that looks simple and reliable to me.

              We changed it so that it was more reliable. No need to worry about directories, filling up file systems, permissions, handling funny parsing rules etc. it is now a simple method call on an MBean which returns an array.

              "Itarc" wrote:
              Is that what you were thinking of or have I the wrong source version. I can't see the link with MBean.

              Sorry, this is the correct mechanism for 4.2.1GA. I thought I had committed these changes before the GA release but, having checked subversion, it was a few weeks later.