6 Replies Latest reply on Sep 30, 2014 10:27 AM by Philip Cootey

    How do I deploy a route into a fabric from process which isn't a Fabric Container?

    Philip Cootey Newbie

      I am trying to deploy a Http Proxy route, using RouteBuilder, to Fuse from Glassfish, by hooking into ServletContextListner.  The strategy is to register the route on a fabric when the listener starts.

       

      I can't find any examples out there which would show me how to get the route into the fabric from a process which isn't a Fabric Container.  The closest thing I have identified is the code in FabricLoadBalancerFeature

      http://grepcode.com/file/repo1.maven.org/maven2/org.fusesource.fabric/fabric-cxf/7.2.0.redhat-065/org/fusesource/fabric/cxf/FabricLoadBalancerFeature.java?av=f

      http://grepcode.com/file/repo1.maven.org/maven2/org.fusesource.fabric/fabric-cxf/7.2.0.redhat-065/org/fusesource/fabric/…

       

      The workflow I imagine is the ServletContextListner is called, I get configure the route with RouteBuilder, I target the fabric (somehow), and then deploy the route to the fabric (somehow).  On the end event of the listener I would remove it.

       

      There may be similar attempts out there which don't use spring which use a non-jboss container to register a route on the bus.  Can anyone point me to an example or offer some suggestions.