8 Replies Latest reply on Mar 8, 2013 3:51 AM by davsclaus

    How to deploy a camel project to Fuse ESB

    servicefuse2012

      i have created a camel-blueprint project using the default archetype and tested in the Fuse IDE Enterprise 7.0.2 using local camel context. The project prints log messages to the IDE console at a predefined interval.

       

      Question 1:

      I followed the instructions to deploy it to the Fuse ESB Enterprise 7.0.2 on the same machine. But I am stuck at step 11 as I don't see "Fuse ESB " under JMX Explorer - it only shows Java Local Processes.

       

      http://fusesource.com/docs/ide/2.1/tutorials/RiderTutDeployFESB.html

       

      Question 2:

      So i tried to deploy the project jar files without the IDE:

      1) copy the target/camel-blueprint-1.0.0-SNAPSHOT.jar to the Fuse ESB /deploy directory and start the ESB server

      2) start the ESB server and type command "install -s "

       

      in both cases, I can see the bundle was successfully loaded and running:

      A Camel Blueprint Route (1

      .0.0.SNAPSHOT)

       

      However, I don't see any output from the project, as when it was running inside IDE.

        • 1. Re: How to deploy a camel project to Fuse ESB
          servicefuse2012

          figured out myself:

           

          question 1: you have to create a "deploy to" configuration as follows:

          right-click the project -> deploy to... -> fill in the hot deploy directory of the Fuse ESB installation.

           

          question 2: in IDE the log is written to the console, whereas in Fuse ESB, it is written to the log file /data/log/fuseesb.log.

          • 2. Re: How to deploy a camel project to Fuse ESB
            davsclaus

            If you have started the ESB, and have connected to the running server using the JMX integration (or as a fabric). Then Fuse IDE knows about this, and the Deploy To should have the ESB listed.

            • 3. Re: How to deploy a camel project to Fuse ESB
              paulc8712

              Hi.

               

              I know i'm posting into an old thread, but I am having the same issue here.

              I cannot see the local FuseESB instance in the JMX Explorer.

               

              I am wondering if there is something missing in either the IDE or ESB configuration that is blocking the JMX integration from working?

               

              This is with Fuse IDE Version: 7.1.60 and Fuse ESB (7.1.0.fuse-047).

              Edit: Also using JDK1.7 on Win7 32-bit

               

              Edited by: paul.crossley on Mar 6, 2013 1:54 AM

              • 4. Re: How to deploy a camel project to Fuse ESB
                lhein

                Could you please try using JDK 1.6 instead? I think that version of Fuse IDE has had problems with Java 7 in the JMX discovery. We already fixed that issue in the upcoming version of IDE.

                • 5. Re: How to deploy a camel project to Fuse ESB
                  paulc8712

                  Thanks for the reply.

                   

                  I installed JDK1.6.0_43, and I am seeing the same behavior.

                   

                  The JAVA_HOME has been set to point to JDK 1.6, and I have set the 'Installed JREs' and 'JMX Explorer|Tools' preferences to both point to JDK 1.6.

                  • 6. Re: How to deploy a camel project to Fuse ESB
                    lhein

                    Ok, first thing to check is if there is anything displayed in the jmx explorer. Do u see any other VM's inside the JMX explorer, for example if you start another eclipse or java process. If yes, then its not the Java7 issue.

                    If you don't see anything, then you should check in the About Eclipse / Installation Details which JDK/JRE is used by Fuse IDE / Eclipse. It should be Java 6.

                     

                    As an alternative you could try out the beta release of the upcoming version. You can download the RCP version here: http://repo.fusesource.com/beta/rcp/7.2.30/.

                     

                    But be warned that this is a beta version and could contain bugs or stability issues.

                     

                    Hope that helps.

                     

                    Lars

                    • 7. Re: How to deploy a camel project to Fuse ESB
                      paulc8712

                      The problem is now resolved. A big thanks for pointing me in the right direction.  I am a bit of a Java rookie, so for others who may have a similar problem - these are the steps i went through to resolve the issue.

                       

                      1. I checked the Eclipse JRE - and it was using JDK1.7. I updated the FuseIDE.ini file to specify to use JDK1.6. 

                       

                      2. The problem was still persisting. So I fired up SQuirreL.  This VM did not show up in the JMX explorer.  I then fired up JConsole - and noticed that all of the VMs (other than JConsole itself) were greyed out.

                       

                      3. A bit of googling led me to this article on JConsole http://planeofthought.com/wp/connecting-jconsole-to-local-process-on-windows-7-and-java-6/  I followed the instructions (essentially renaming the %temp%\hsperfdata_%username% to use the correct case).  When I checked again in JConsole, I could now see all VMs.

                       

                      4. Back in FuseIDE, when I start the ESB, I can now see it as expected (and now also the JConsole and SQuirreL VMs as well)

                       

                      5. I then switched the Eclipse JRE back to 1.7 - and while I could see all of the VMs, the Fuse ESB VM was just another VM, so I switched it back to 1.6.

                       

                      Thanks again - PaulC

                      • 8. Re: How to deploy a camel project to Fuse ESB
                        davsclaus

                        Thanks for sharing your solution and with the link to that article.