Thanks for the info. The reason I want to stop the component and not the consumer is because the mina component forwards its information to a recipient list, so I end up having many consumers! That is why I want to cut the flow of messages at the source and not at the destination. I will have to look on how to enable and disable a route. Any code example or Junit test cases that I could look into for reference on how to do this? Thanks.
James.Strachan wrote: > > On 10/12/2007, CigarMan <[EMAIL PROTECTED]> wrote: >> >> Is it possible to disable an endoint? >> >> I have a service listening on tcp port 7777 using the mina component. The >> service can be enabled or disabled, meaning that I want to stop listening >> on >> the port. Is there a way to disable the component? Is removing the >> component >> from the camelContext enough or are some cleanup steps required? Thank >> you. > > Normally its the consumer you want to stop. You can look up the MBeans > in JMX I guess? > > Another option is to start the route by itself in its own CamelContext > so you can easily enable/disable it. > > We should make it a little easier to stop & start a route though. > > -- > James > ------- > http://macstrac.blogspot.com/ > > Open Source Integration > http://open.iona.com > > -- View this message in context: http://www.nabble.com/How-to-disable-an-endpoint--tp14262129s22882p14275000.html Sent from the Camel - Users mailing list archive at Nabble.com.
