You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by facundor <fa...@gmail.com> on 2013/03/01 13:57:21 UTC

change RejectedExecutionHandler on Servicemix 3.3.2

Hi,

We are using intensively Servicemix 3.3.2 in a large health company. The
client need to change the RejectedExecutionHandler used by SM with the
AbortPolicy. That is a posible change or the side efects of this will
destroy the server?

This is the fragment of code that we will modify on the class 
*org.apache.servicemix.executors.impl.ExecutorFactoryImpl
*




Specifically in the line



For this modification we create a new ExcecutorFactory implemetation.

Thanks in advance



--
View this message in context: http://servicemix.396122.n5.nabble.com/change-RejectedExecutionHandler-on-Servicemix-3-3-2-tp5716008.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: change RejectedExecutionHandler on Servicemix 3.3.2

Posted by facundor <fa...@gmail.com>.
Thanks Gert for you fast answer,

I will put hands on this change, 

Cheers



--
View this message in context: http://servicemix.396122.n5.nabble.com/change-RejectedExecutionHandler-on-Servicemix-3-3-2-tp5716008p5716013.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: change RejectedExecutionHandler on Servicemix 3.3.2

Posted by Gert Vanthienen <ge...@gmail.com>.
L.S.,


I don't expect any real problems with that change.  The ExecutorFactory
interface was added to allow replacing the implementation without breaking
the rest of the functionality.  The default use of the CallerRunsPolicy is
beause it's a natural way of throtting the server when the thread pool gets
exhausted, as it wil block the thread that otherwise could keep on sending
more exchanges to the ESB, but changing that policy shouldn't cause any
other side effects as far as I know.


Regards,

Gert



On Fri, Mar 1, 2013 at 1:57 PM, facundor <fa...@gmail.com> wrote:

> Hi,
>
> We are using intensively Servicemix 3.3.2 in a large health company. The
> client need to change the RejectedExecutionHandler used by SM with the
> AbortPolicy. That is a posible change or the side efects of this will
> destroy the server?
>
> This is the fragment of code that we will modify on the class
> *org.apache.servicemix.executors.impl.ExecutorFactoryImpl
> *
>
>
>
>
> Specifically in the line
>
>
>
> For this modification we create a new ExcecutorFactory implemetation.
>
> Thanks in advance
>
>
>
> --
> View this message in context:
> http://servicemix.396122.n5.nabble.com/change-RejectedExecutionHandler-on-Servicemix-3-3-2-tp5716008.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>