My question is how to gracefully stop this instance: 

org.apache.camel.spring.Main -ac file.xml

In this file.xml I have definitions for starting an activemq broker on port
61616. 

I expect that if in my Java code I call
Main.getInstance.getApplicationContext.close() this will close camel and
since this instance started the activemq broker, the shutting down of the
broker will be taken care of automatically. 

Is this the way to gracefully stop this instance ? 


harinair wrote:
> 
> So that the Camel router is shutdown for the maintenance or upgrade. There
> is no need to shutdown your broker with Camel. Right? For my case my
> broker services many other applications including the Camel based message
> router. I can independently stop each other but if I stop Message Broker
> then Camel logs shows Exceptions... hence in that case I may stop the
> Camel first and then the Broker.
> 
> Probably you have this question since you run Camel within the Apache
> ActiveMQ broker?
> 
> Hari Gangadharan
> 
> 
> selezovikj wrote:
>> 
>> In the doStop() method of org.apache.camel.spring.Main class the
>> application context is closed. 
>> What will this actually do ? 
>> Let us say in my camel-server.xml file, I have definitions for an
>> activemq broker running on port 61616. 
>> When I close the application context the broker does not shutdown. 
>> What does closing the application context result with ? 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Two-questions%3A-Stopping-Camel-and-intercept-before-retry-tp21323127s22882p21495220.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to