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

    camel-cdi and REST with cxf

    labo32_delaboe

      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