1 2 Previous Next 17 Replies Latest reply on Jul 9, 2009 1:13 AM by davsclaus Go to original post
      • 15. Re: MSMQ - > ACTIVEMQ?
        njiang

        The tests are write with JUnit , you can use mvn test to run them.

        If you open the project in an IDE , you can use the IDE to run them.

        • 16. Re: MSMQ - > ACTIVEMQ?
          aboyz

          njiang

           

          thank you for the quick reponse, I'm a bit confuse on the following.

           

          The tests are write with JUnit , you can use mvn test to run them.

          If you open the project in an IDE , you can use the IDE to run them.

           

          So you are saying I can use Junit to import those .java test script? How do i use mvn test to run those .java file?

          I tried mvn test and i'm getting the following error..

           

          C:\camel-test\java\org\apache\camel\component\msmq>mvn test

          Scanning for projects...

          -


          Building Maven Default Project

              task-segment:

          -


          -


          BUILD ERROR

          -


          Cannot execute mojo: resources. It requires a project with an existing p

          m.xml, but the build is not using one.

          -


          For more information, run Maven with the -e switch

          -


          Total time: < 1 second

          Finished at: Wed Jul 08 16:26:28 PDT 2009

          Final Memory: 3M/6M

          -


           

          What do you mean open the project in an IDE? where do I get the IDE? Please be more specific.

           

          thank you so much...

          • 17. Re: MSMQ - > ACTIVEMQ?
            davsclaus

            Hi

             

            To use the camel-msmq.jar you need basically to add it to the classpath of your existing application. Since camel-msmq.jar requires 2 other .jars you need to get them as well

             

            camel-core.jar

            commons-logging-1.1.1.jar

             

            Then you "just" add those 3 .jars to your existing application.

             

            How to do this you could use google to find some Java tutorials or the likes.

             

            Using maven is a different story. Its a bit more complex. But to fix your error you need to build the other modules as well as it requires the camel-core also.

             

            See this page

            http://camel.apache.org/building.html

            1 2 Previous Next