You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by tamil13 <ta...@gmail.com> on 2012/11/26 14:39:07 UTC
camelcontext
I have one doubt regarding camelcontext using spring. In our project They
used 2 camel configuration xml which are camel-context.xml and
archive-camel-context.xml. In both, They used <camel:camelContext id="id1">
and <camel:camelContext id="id2">. but they haven't used
<springCamelcontext> to invoke that camels in main. instead, They used
import org.apache.camel.spring.Main;
.
.
.
private static Main main;
.
.
.
main = new Main();
main.start();
.
.
.
but it is running. how it is work?
--
View this message in context: http://camel.465427.n5.nabble.com/camelcontext-tp5723237.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camelcontext
Posted by Willem jiang <wi...@gmail.com>.
When you using the Main, we will create an application context which could hold two instance of camel context and they are started by default.
If you are using SpringCamelContext, you just hold one reference of the camel context.
--
Willem Jiang
Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang
Weibo: willemjiang
On Monday, November 26, 2012 at 9:39 PM, tamil13 wrote:
> I have one doubt regarding camelcontext using spring. In our project They
> used 2 camel configuration xml which are camel-context.xml and
> archive-camel-context.xml. In both, They used <camel:camelContext id="id1">
> and <camel:camelContext id="id2">. but they haven't used
> <springCamelcontext> to invoke that camels in main. instead, They used
> import org.apache.camel.spring.Main;
> .
> .
> .
> private static Main main;
> .
> .
> .
> main = new Main();
> main.start();
> .
> .
> .
> but it is running. how it is work?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/camelcontext-tp5723237.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).