Use the run method instead of start.
On Thu, Dec 1, 2016 at 4:07 PM, sa_james <sa_remin...@hotmail.com> wrote:
> Here I am again with a simple test:
> / <bean id="wsMQConnectionFactorySpCached"
> <property name="targetConnectionFactory"
> ref="webSphereConnectionFactory" />
> <property name="reconnectOnException" value="true" />
> After I have started the app:
> INFO Route: route1 started and consuming from: jms://queue
> INFO Total 1 routes, of which 1 are started.
> INFO Apache Camel 2.18.0 (CamelContext: camel-1) started in 0.481 seconds
> Application has now been started. You can press ctrl + c to stop.
> Then here the app exits.
> Main function as usual:
> / Main main = new Main();
> System.out.println("\n\nApplication has now been started. You can
> press ctrl + c to stop.\n\n");/
> What is happening? Any idea?
> I could not find anything in the mailing list.
> View this message in context:
> Sent from the Camel - Users mailing list archive at Nabble.com.
Camel in Action 2: https://www.manning.com/ibsen2