You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by CigarMan <st...@bluetreewireless.com> on 2007/12/10 22:29:45 UTC
How-to disable an endpoint?
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.
--
View this message in context: http://www.nabble.com/How-to-disable-an-endpoint--tp14262129s22882p14262129.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How-to disable an endpoint?
Posted by CigarMan <st...@bluetreewireless.com>.
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 <st...@bluetreewireless.com> 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.
Re: How-to disable an endpoint?
Posted by James Strachan <ja...@gmail.com>.
On 10/12/2007, CigarMan <st...@bluetreewireless.com> 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