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:
>
> /from("jms:queue").to("log:test")/
>
> /  <bean id="wsMQConnectionFactorySpCached"
> class="org.springframework.jms.connection.CachingConnectionFactory">
>     <property name="targetConnectionFactory"
> ref="webSphereConnectionFactory" />
>     <property name="reconnectOnException" value="true" />
>   </bean>/
>
> 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();
>         main.setApplicationContextUri("META-INF/spring/camel-context.xml");
>         main.start();
>         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: 
> http://camel.465427.n5.nabble.com/stand-alone-problem-tp5790885.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to