Hi Yeah as the other people in this thread have said. Sounds like you need to use a container/server that supports deploying applications on the fly, and then you can integrate your applications using Camel components, or technologies that would support that (for example OSGi services / EJB etc). With OSGi you can declare an OSGi service which other applications (bundles) can use. This allows you to call OSGi services (a pojo exposed with an interface) from any bundle, also from Camel routes.
For example Karaf, ServiceMix, Tomcat, JBoss AS, Jetty, et all are containers that could support this. On Wed, Oct 16, 2013 at 8:29 PM, lassesvestergaard <lassesvesterga...@gmail.com> wrote: > Hi all. > > I simply can't get my head around this issue. > > Let's say I have a running native java application that has a running > camelcontext. I deploy this application on a production server somewhere. In > the meantime I want to develop and test new routes in my own local > development environment. When I have tested the route, I now want to add the > route to the camelcontext running on the production server (I do it all with > java DSL). How would you do that? > > You could just compile the single class that extends Routebuilder, upload it > to the production application and classload the file. But this would only > work in very simple and specific cases. What if I want to use external jars > in my route (I guess all this also relates to how I can register a newly > created bean in the camelcontext)? As I see it, I need to package the whole > route (including dependencies) as a jar, then upload it and classload the > whole jar. Is this really how it is done? Or do I use a completely wrong > approach? I'm extremely interested in knowing what/how you guys are doing in > this area. To me this scenario should be one of the most normal ones in > relation to camel, so I'm surprised that I can't find any examples on how to > do this. > > As mentioned earlier, This entire question also relates to how I can insert > a new bean component at runtime. > > Best regards > > Lasse Vestergaard > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Add-new-route-runtime-tp5741694.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen