3 Replies Latest reply on Sep 11, 2012 9:58 PM by Willem Jiang

    camel-cdi and REST with cxf

    Jochen Lauer Apprentice

      Hello,

       

      how can I setup a REST service using the camel-cdi component ?

      For cxf I think it is required to add parts from application context

       

       

       

      somehow in the bootstrap class of the camel cdi application ?

       

      Or is it possible to use the REST implementation of my container (in my case jboss as 7) like

       

      @Path("/services")

      public class TestRest {

       

           @Inject

           TestService testService;

       

           @GET

           @Path("/triggerCamel")

           public void triggerMyCamelRoute() {

                ....

                     ......

            

      to trigger the camel route

       

       

      from("TestRest")

       

      Thanks in advance

      labo