camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine DESSAIGNE <antoine.dessai...@gmail.com>
Subject Re: Camel stop routes and start
Date Tue, 17 Mar 2015 10:42:18 GMT
Hi everyone,

Indeed there's a trick for forcing the shutdown of a context (or a
particular route). You need to retrieve the currentShutdownTaskFuture of
the DefaultShutdownStategy and call cancel(true) on it.

Also, you can have more than 100 camel contexts in a single JVM, we're
doing it. But of course, your server needs to have enough memory :)

Antoine.

2015-03-13 10:05 GMT+01:00 Willem Jiang <willem.jiang@gmail.com>:

> Camel Context holds the reference of components, languages, data formats.
> You cannot share the direct:endpoint across the camel context.
>
> I don’t think it’s not a good choice to create 100 camel contexts in a
> single JVM.
>
> Can you try to create a new route instead restart the one route?
>
> --
> Willem Jiang
>
> Red Hat, Inc.
> Web: http://www.redhat.com
> Blog: http://willemjiang.blogspot.com (English)
> http://jnn.iteye.com (Chinese)
> Twitter: willemjiang
> Weibo: 姜宁willem
>
>
>
> On March 11, 2015 at 11:24:34 PM, majid (mohamed.elgabbouch@peerius.com)
> wrote:
> > I finally stopping the whole camel context.
> >
> > I am wondering how costly is the operation of creation many camel
> contexts
> > (one per customer) ?
> > I will have around 100 camel context in my JVM, is it expensive ? or
> should
> > I use only one ?
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Camel-stop-routes-and-start-tp5763950p5764011.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> >
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message