5 Replies Latest reply on Jul 29, 2009 9:35 AM by Stan Lewis

    CXF route Configuration with Camel using FID

    jcornell Newbie

      I am a developer working with your new Fuse Integration Designer IDE.

      I have been having some trouble developing a camel route that utilizes

      the CXF component.  My current route is simple.  The route

       

      JMS -> CXF -> FileOut

       

      I have developed a similar route using the same service but utilizing the JBI

      component and everything worked great.  Now I simply want to swap out

      the JBI endpoint and replace it with the CXF component.  Are there

      example tutorials illustrating how to develop these camel routes.

        • 1. Re: CXF route Configuration with Camel using FID
          Dinesh Reddy Newbie

          Hi,

           

          What is the exact problem you are getting? Are you facing the problems when you try to run the route?

           

          Which version of Camel runtime you are using to run the route? I believe you are trying to invoke a Webservice using the CXF endpoint. Is this true?

           

          Thanks

          Regards

          Dinesh

          • 2. Re: CXF route Configuration with Camel using FID
            jcornell Newbie

            I am using servicemix 3.4 and developing in the FID 1.2.1 which I think is using camel plugin version 1.5.1.  The problem I am having is that when I deploy my route it can not find my service implementation class.  I was able to reference my deployed service with the JBI component but it seems like I can't do the same thing using the CXF component.  Yes I am trying to utilize the camel CXF component.

             

            Jim

            • 3. Re: CXF route Configuration with Camel using FID
              Stan Lewis Novice

              Hi!  Is this the same project for which you posted the route in thread id 1004? 

               

              If you're looking to access a CXF SE that's already been deployed in the ESB then you've got to use JBI.  What your route currently is trying to do is use the CXF bean camel component which you use to expose a web service implementation class to a camel route, what this means for you is that the route would be instantiating an instance of your implementation class and invoking on that instance and not on the CXF SE component that you want to access.  To do the latter you've got to use JBI and go through the NMR, assuming this is all running within the same JVM.  If your route is running outside of servicemix then you'd be looking at maybe doing something like what's on this page under "Configure the CXF endpoints with Spring", and your SA containing the CXF SE should also expose that SE using a CXF BC.   Hope that helps!

              • 4. Re: CXF route Configuration with Camel using FID
                jcornell Newbie

                Are you sure there is no alternative to using JBI.  I would rather not use JBI components in the route.  IS there an OSGI solution?

                • 5. Re: CXF route Configuration with Camel using FID
                  Stan Lewis Novice

                  You can't in FUSE ESB 3.4, this is strictly JBI.  You should download FUSE ESB 4.x and take a look at the cxf-camel-nmr demo, I think this might be along the lines of what you're looking for.