Hi

If the route is very simple and can run with the dependencies already
available in the Karaf, you can go for Blueprint deployment model by simply
dropping the camel xml file containing the routes into the Fuse
Installation/deploy folder.
If it contains external jars/POM dependencies downloaded as jars, i would
recommend adding routes into the old project and then rebuild the project
using Maven.
When you deploy, if there is not change in the project artifact id, group
id and version,, the fuse will replace the old deployed bundle with the
updated one.

Cheers
Reji


On Wed, Oct 16, 2013 at 11:29 AM, lassesvestergaard [via Camel] <
ml-node+s465427n5741694...@n5.nabble.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
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/Add-new-route-runtime-tp5741694.html
>  To unsubscribe from Camel - Users, click 
> here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=Y29udGFjdHJlamlAZ21haWwuY29tfDQ2NTQyOHwxMDA0OTE4MjMz>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/Add-new-route-runtime-tp5741694p5741714.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to