You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Paul Fremantle <pz...@gmail.com> on 2007/07/27 17:08:35 UTC

Thread pool in Axis2 (and Synapse)

Hi

I'm looking at how to add ThreadPool support to Synapse and I've
looked at the Axis2 support. What I'm trying to figure out is why we
don't reuse the java.util.Concurrent interfaces but instead create our
own?

In particular I'd like to be able to track items that are started (so
I can stop them when Synapse closes down or needs to clean up that
config).

The obvious interface to do this is this one:
http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ExecutorService.html

Because when you submit work you get back a Future which allows me to
cancel running work that is running.

Paul

-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Thread pool in Axis2 (and Synapse)

Posted by Paul Fremantle <pz...@gmail.com>.
Ok.

I still think it would be better to expose:

http://dcl.mathcs.emory.edu/util/backport-util-concurrent/doc/api/edu/emory/mathcs/backport/java/util/concurrent/ExecutorService.html

Paul

On 7/27/07, Davanum Srinivas <da...@gmail.com> wrote:
> Because, the baseline for Axis2 is JDK 1.4
>
> -- dims
>
> On 7/27/07, Paul Fremantle <pz...@gmail.com> wrote:
> > Hi
> >
> > I'm looking at how to add ThreadPool support to Synapse and I've
> > looked at the Axis2 support. What I'm trying to figure out is why we
> > don't reuse the java.util.Concurrent interfaces but instead create our
> > own?
> >
> > In particular I'd like to be able to track items that are started (so
> > I can stop them when Synapse closes down or needs to clean up that
> > config).
> >
> > The obvious interface to do this is this one:
> > http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ExecutorService.html
> >
> > Because when you submit work you get back a Future which allows me to
> > cancel running work that is running.
> >
> > Paul
> >
> > --
> > Paul Fremantle
> > Co-Founder and VP of Technical Sales, WSO2
> > OASIS WS-RX TC Co-chair
> >
> > blog: http://pzf.fremantle.org
> > paul@wso2.com
> >
> > "Oxygenating the Web Service Platform", www.wso2.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-dev-help@ws.apache.org
> >
> >
>
>
> --
> Davanum Srinivas :: http://davanum.wordpress.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Thread pool in Axis2 (and Synapse)

Posted by Paul Fremantle <pz...@gmail.com>.
Franz

As far as I know, we have a lot of those features already.

1) I don't know of any differences between the backport concurrent and the
real concurrent
2) If you use JDK1.5 you get the NIO transport with SSL
3) Same for annotations

However, as regards generics, I agree it would be nice!

Paul

On 7/30/07, Franz Fehringer <fe...@isogmbh.de> wrote:
>
>  Are there plans to upgrade to JDK 1.5 (improved multithreading, SSL with
> NIO, annotations, generics, ..), perhaps with Axis2 1.4?
>
> Franz
>
>
> Davanum Srinivas schrieb:
>
> Because, the baseline for Axis2 is JDK 1.4
>
> -- dims
>
> On 7/27/07, Paul Fremantle <pz...@gmail.com> <pz...@gmail.com> wrote:
>
>  Hi
>
> I'm looking at how to add ThreadPool support to Synapse and I've
> looked at the Axis2 support. What I'm trying to figure out is why we
> don't reuse the java.util.Concurrent interfaces but instead create our
> own?
>
> In particular I'd like to be able to track items that are started (so
> I can stop them when Synapse closes down or needs to clean up that
> config).
>
> The obvious interface to do this is this one:
> http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ExecutorService.html
>
> Because when you submit work you get back a Future which allows me to
> cancel running work that is running.
>
> Paul
>
> --
> Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.orgpaul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>
>
>
> --
> Dr. Franz Fehringer (Dipl. Math.)
> Projektleiter Touristik-Systeme
> ____________________________________
> ISO Software Systeme GmbH
> Eichendorffstrasse 29
> 90491 Nürnberg
> Germany
>
> Tel.: +49/(911) - 99594-0
> mailto:Franz.Fehringer@isogmbh.de <Fr...@isogmbh.de>http://www.isogmbh.de
>
> Amtsgericht Nürnberg HRB 18299
> Geschäftsführer: Dipl.-Inform., Dipl.-Kaufm. Harald Goeb
> Sitz: Nürnberg
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

Re: Thread pool in Axis2 (and Synapse)

Posted by Franz Fehringer <fe...@isogmbh.de>.
Are there plans to upgrade to JDK 1.5 (improved multithreading, SSL with 
NIO, annotations, generics, ..), perhaps with Axis2 1.4?

Franz


Davanum Srinivas schrieb:
> Because, the baseline for Axis2 is JDK 1.4
>
> -- dims
>
> On 7/27/07, Paul Fremantle <pz...@gmail.com> wrote:
>   
>> Hi
>>
>> I'm looking at how to add ThreadPool support to Synapse and I've
>> looked at the Axis2 support. What I'm trying to figure out is why we
>> don't reuse the java.util.Concurrent interfaces but instead create our
>> own?
>>
>> In particular I'd like to be able to track items that are started (so
>> I can stop them when Synapse closes down or needs to clean up that
>> config).
>>
>> The obvious interface to do this is this one:
>> http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ExecutorService.html
>>
>> Because when you submit work you get back a Future which allows me to
>> cancel running work that is running.
>>
>> Paul
>>
>> --
>> Paul Fremantle
>> Co-Founder and VP of Technical Sales, WSO2
>> OASIS WS-RX TC Co-chair
>>
>> blog: http://pzf.fremantle.org
>> paul@wso2.com
>>
>> "Oxygenating the Web Service Platform", www.wso2.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>
>>
>>     
>
>
>   


-- 
Dr. Franz Fehringer (Dipl. Math.)
Projektleiter Touristik-Systeme
____________________________________
ISO Software Systeme GmbH
Eichendorffstrasse 29
90491 N�rnberg
Germany

Tel.: +49/(911) - 99594-0

mailto:Franz.Fehringer@isogmbh.de
http://www.isogmbh.de

Amtsgericht N�rnberg HRB 18299
Gesch�ftsf�hrer: Dipl.-Inform., Dipl.-Kaufm. Harald Goeb
Sitz: N�rnberg



Re: Thread pool in Axis2 (and Synapse)

Posted by Franz Fehringer <fe...@isogmbh.de>.
Are there plans to upgrade to JDK 1.5 (improved multithreading, SSL with 
NIO, annotations, generics, ..), perhaps with Axis2 1.4?

Franz


Davanum Srinivas schrieb:
> Because, the baseline for Axis2 is JDK 1.4
>
> -- dims
>
> On 7/27/07, Paul Fremantle <pz...@gmail.com> wrote:
>   
>> Hi
>>
>> I'm looking at how to add ThreadPool support to Synapse and I've
>> looked at the Axis2 support. What I'm trying to figure out is why we
>> don't reuse the java.util.Concurrent interfaces but instead create our
>> own?
>>
>> In particular I'd like to be able to track items that are started (so
>> I can stop them when Synapse closes down or needs to clean up that
>> config).
>>
>> The obvious interface to do this is this one:
>> http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ExecutorService.html
>>
>> Because when you submit work you get back a Future which allows me to
>> cancel running work that is running.
>>
>> Paul
>>
>> --
>> Paul Fremantle
>> Co-Founder and VP of Technical Sales, WSO2
>> OASIS WS-RX TC Co-chair
>>
>> blog: http://pzf.fremantle.org
>> paul@wso2.com
>>
>> "Oxygenating the Web Service Platform", www.wso2.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-dev-help@ws.apache.org
>>
>>
>>     
>
>
>   


-- 
Dr. Franz Fehringer (Dipl. Math.)
Projektleiter Touristik-Systeme
____________________________________
ISO Software Systeme GmbH
Eichendorffstrasse 29
90491 N�rnberg
Germany

Tel.: +49/(911) - 99594-0

mailto:Franz.Fehringer@isogmbh.de
http://www.isogmbh.de

Amtsgericht N�rnberg HRB 18299
Gesch�ftsf�hrer: Dipl.-Inform., Dipl.-Kaufm. Harald Goeb
Sitz: N�rnberg



Re: Thread pool in Axis2 (and Synapse)

Posted by Davanum Srinivas <da...@gmail.com>.
Because, the baseline for Axis2 is JDK 1.4

-- dims

On 7/27/07, Paul Fremantle <pz...@gmail.com> wrote:
> Hi
>
> I'm looking at how to add ThreadPool support to Synapse and I've
> looked at the Axis2 support. What I'm trying to figure out is why we
> don't reuse the java.util.Concurrent interfaces but instead create our
> own?
>
> In particular I'd like to be able to track items that are started (so
> I can stop them when Synapse closes down or needs to clean up that
> config).
>
> The obvious interface to do this is this one:
> http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ExecutorService.html
>
> Because when you submit work you get back a Future which allows me to
> cancel running work that is running.
>
> Paul
>
> --
> Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Thread pool in Axis2 (and Synapse)

Posted by Davanum Srinivas <da...@gmail.com>.
Because, the baseline for Axis2 is JDK 1.4

-- dims

On 7/27/07, Paul Fremantle <pz...@gmail.com> wrote:
> Hi
>
> I'm looking at how to add ThreadPool support to Synapse and I've
> looked at the Axis2 support. What I'm trying to figure out is why we
> don't reuse the java.util.Concurrent interfaces but instead create our
> own?
>
> In particular I'd like to be able to track items that are started (so
> I can stop them when Synapse closes down or needs to clean up that
> config).
>
> The obvious interface to do this is this one:
> http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ExecutorService.html
>
> Because when you submit work you get back a Future which allows me to
> cancel running work that is running.
>
> Paul
>
> --
> Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> paul@wso2.com
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org