RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Carsten Ziegeler
Hi, I just tested the last changes and it seems that the continuation manager is still not working correctly. It seems that the ContinuationInterrupt is still not executed as soon as jetty is listening. Can someone confirm this? Carsten

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Bruno Dumon
On Tue, 2003-09-02 at 09:01, Carsten Ziegeler wrote: Hi, I just tested the last changes and it seems that the continuation manager is still not working correctly. It seems that the ContinuationInterrupt is still not executed as soon as jetty is listening. Can someone confirm this? Did

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Carsten Ziegeler
Bruno Dumon wrote: On Tue, 2003-09-02 at 09:01, Carsten Ziegeler wrote: Hi, I just tested the last changes and it seems that the continuation manager is still not working correctly. It seems that the ContinuationInterrupt is still not executed as soon as jetty is listening. Can

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Bruno Dumon
On Tue, 2003-09-02 at 09:16, Carsten Ziegeler wrote: Bruno Dumon wrote: On Tue, 2003-09-02 at 09:01, Carsten Ziegeler wrote: Hi, I just tested the last changes and it seems that the continuation manager is still not working correctly. It seems that the

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Carsten Ziegeler
Bruno Dumon wrote: I just verified and it works here (both jdk 1.4 and 1.3), so I'm looking for alternative explanations: did you remove the old util.concurrent jar from your WEB-INF/lib ? Yes. Hmm, strange - just to make sure that I did nothing wrong when testing, I changed the following two

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Bruno Dumon
On Tue, 2003-09-02 at 10:10, Carsten Ziegeler wrote: Bruno Dumon wrote: I just verified and it works here (both jdk 1.4 and 1.3), so I'm looking for alternative explanations: did you remove the old util.concurrent jar from your WEB-INF/lib ? Yes. Hmm, strange - just to make sure that I

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Carsten Ziegeler
Bruno Dumon wrote: SNIP Looks ok, I changed the parameters in the cocoon.xconf though, but that's the same. Just tried it over here on a Windows box with java 1.4.2 and it also works. With working I mean I added a System.out.println to the ContinuationsInterrupt.execute() method and see it

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Bruno Dumon
On Tue, 2003-09-02 at 12:48, Carsten Ziegeler wrote: Bruno Dumon wrote: SNIP Looks ok, I changed the parameters in the cocoon.xconf though, but that's the same. Just tried it over here on a Windows box with java 1.4.2 and it also works. With working I mean I added a

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Bruno Dumon
On Tue, 2003-09-02 at 14:42, Bruno Dumon wrote: On Tue, 2003-09-02 at 12:48, Carsten Ziegeler wrote: Bruno Dumon wrote: SNIP Looks ok, I changed the parameters in the cocoon.xconf though, but that's the same. Just tried it over here on a Windows box with java 1.4.2 and it also

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Carsten Ziegeler
Bruno Dumon wrote: Another idea: could you try my original changed jar available here: http://outerthought.net/~bruno/concurrent.jar Never mind, I can reproduce the problem now on marc's pc. Great, so I'm not insane! (I tried your version anyway, but without success) Carsten

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Berin Loritsch
Bruno Dumon wrote: Or maybe not so great. I'm not sure the CommandManager is well suited for a general purpose scheduler. What follows now should be read with a 'AFAIU' disclaimer: All commands added to the CommandManager are executed sequentially and on one thread. So if there is one command

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Nicola Ken Barozzi
Carsten Ziegeler wrote, On 02/09/2003 15.21: Bruno Dumon wrote: Another idea: could you try my original changed jar available here: http://outerthought.net/~bruno/concurrent.jar Never mind, I can reproduce the problem now on marc's pc. Great, so I'm not insane! (I tried your version anyway, but

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Bruno Dumon
On Tue, 2003-09-02 at 15:21, Carsten Ziegeler wrote: Bruno Dumon wrote: Another idea: could you try my original changed jar available here: http://outerthought.net/~bruno/concurrent.jar Never mind, I can reproduce the problem now on marc's pc. Great, so I'm not insane! (I tried

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Steven Noels
Nicola Ken Barozzi wrote: I'll have to start to play golf just to find a use for my tonsils) Eeeck. Spare us the details! ;-) /Steven -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source Java XMLAn Orixo Member Read my weblog at

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Berin Loritsch
Bruno Dumon wrote: Looking at the code again, I still think that all events from one CommandManager are handled by one thread. If you look at the code of the AbstractThreadManager: In the method register( EventPipeline pipeline ) one PipelineRunner is created to handle events from the given

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Bruno Dumon
On Tue, 2003-09-02 at 15:52, Berin Loritsch wrote: Bruno Dumon wrote: Or maybe not so great. I'm not sure the CommandManager is well suited for a general purpose scheduler. What follows now should be read with a 'AFAIU' disclaimer: All commands added to the CommandManager are

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Bruno Dumon
On Tue, 2003-09-02 at 19:24, Berin Loritsch wrote: Bruno Dumon wrote: Looking at the code again, I still think that all events from one CommandManager are handled by one thread. If you look at the code of the AbstractThreadManager: In the method register( EventPipeline pipeline

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Giacomo Pati
On Tue, 2 Sep 2003, Bruno Dumon wrote: On Tue, 2003-09-02 at 15:21, Carsten Ziegeler wrote: Bruno Dumon wrote: Another idea: could you try my original changed jar available here: http://outerthought.net/~bruno/concurrent.jar Never mind, I can reproduce the problem now on

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Berin Loritsch
Giacomo Pati wrote: On Tue, 2 Sep 2003, Bruno Dumon wrote: On Tue, 2003-09-02 at 15:21, Carsten Ziegeler wrote: Bruno Dumon wrote: Another idea: could you try my original changed jar available here: http://outerthought.net/~bruno/concurrent.jar Never mind, I can reproduce the problem now on

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Giacomo Pati
On Mon, 1 Sep 2003, Bruno Dumon wrote: On Mon, 2003-09-01 at 16:29, Giacomo Pati wrote: On Mon, 1 Sep 2003, Bruno Dumon wrote: On Mon, 2003-09-01 at 11:37, Giacomo Pati wrote: On Mon, 1 Sep 2003, Reinhard Poetz wrote: On Behalf Of Giacomo Pati On Mon, 1

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Berin Loritsch
Bruno Dumon wrote: I don't want to spend very much time on this thread anymore, but here's the short summary: Understandable. Again, I do want to fix the issues. Also note that it is accessible to Cocoon committers. I don't have any problem with the concepts behind the

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Bruno Dumon
On Tue, 2003-09-02 at 21:09, Giacomo Pati wrote: On Tue, 2 Sep 2003, Bruno Dumon wrote: On Tue, 2003-09-02 at 15:21, Carsten Ziegeler wrote: Bruno Dumon wrote: Another idea: could you try my original changed jar available here: http://outerthought.net/~bruno/concurrent.jar

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Bruno Dumon
On Tue, 2003-09-02 at 12:48, Giacomo Pati wrote: On Mon, 1 Sep 2003, Bruno Dumon wrote: On Mon, 2003-09-01 at 16:29, Giacomo Pati wrote: On Mon, 1 Sep 2003, Bruno Dumon wrote: On Mon, 2003-09-01 at 11:37, Giacomo Pati wrote: On Mon, 1 Sep 2003, Reinhard Poetz wrote:

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-02 Thread Giacomo Pati
On Tue, 2 Sep 2003, Berin Loritsch wrote: Giacomo Pati wrote: On Tue, 2 Sep 2003, Bruno Dumon wrote: On Tue, 2003-09-02 at 15:21, Carsten Ziegeler wrote: Bruno Dumon wrote: Another idea: could you try my original changed jar available here:

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-01 Thread Andreas Hochsteger
Hi! Just in case you didn't know: Did you have a look at the Quartz Scheduler? http://www.part.net/quartz.html http://www.part.net/quartz_features.html Perhaps it already does what you need. It's licensed under a BSD and Apache-Style license. Here's another one: http://jcrontab.sourceforge.net/ I

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-01 Thread Giacomo Pati
On Mon, 1 Sep 2003, Andreas Hochsteger wrote: Hi! Just in case you didn't know: Did you have a look at the Quartz Scheduler? http://www.part.net/quartz.html http://www.part.net/quartz_features.html Perhaps it already does what you need. It's licensed under a BSD and Apache-Style license.

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-01 Thread Reinhard Poetz
On Behalf Of Giacomo Pati On Mon, 1 Sep 2003, Andreas Hochsteger wrote: Hi! Just in case you didn't know: Did you have a look at the Quartz Scheduler? http://www.part.net/quartz.html http://www.part.net/quartz_features.html Perhaps it already does what you need. It's

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-01 Thread Giacomo Pati
On Mon, 1 Sep 2003, Reinhard Poetz wrote: On Behalf Of Giacomo Pati On Mon, 1 Sep 2003, Andreas Hochsteger wrote: Hi! Just in case you didn't know: Did you have a look at the Quartz Scheduler? http://www.part.net/quartz.html http://www.part.net/quartz_features.html

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-01 Thread Bruno Dumon
On Mon, 2003-09-01 at 11:37, Giacomo Pati wrote: On Mon, 1 Sep 2003, Reinhard Poetz wrote: On Behalf Of Giacomo Pati On Mon, 1 Sep 2003, Andreas Hochsteger wrote: Hi! Just in case you didn't know: Did you have a look at the Quartz Scheduler?

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-01 Thread Reinhard Poetz
From: Bruno Dumon On Mon, 2003-09-01 at 11:37, Giacomo Pati wrote: On Mon, 1 Sep 2003, Reinhard Poetz wrote: On Behalf Of Giacomo Pati On Mon, 1 Sep 2003, Andreas Hochsteger wrote: Hi! Just in case you didn't know: Did you have a look at the Quartz

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-01 Thread Hunsberger, Peter
Giacomo Pati [EMAIL PROTECTED] writes: snip/ First, if you look at the Cornerstone Scheduler you'll see that the ability to define repeated tasks are somehow limited. Business apps can easily request administration tasks to be run twice a day on work days. To define this with the

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-01 Thread Giacomo Pati
On Mon, 1 Sep 2003, Hunsberger, Peter wrote: Giacomo Pati [EMAIL PROTECTED] writes: snip/ First, if you look at the Cornerstone Scheduler you'll see that the ability to define repeated tasks are somehow limited. Business apps can easily request administration tasks to be run twice a

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-01 Thread Hunsberger, Peter
Giacomo Pati [EMAIL PROTECTED] asks: I did this once upon a time, I think in C code. As I recall it's basically the equivalent of building a Map of tasks and the calculated delta time until they need to be executed next and then using the minimum of these deltas. I don't think it's

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-01 Thread Giacomo Pati
On Mon, 1 Sep 2003, Bruno Dumon wrote: On Mon, 2003-09-01 at 11:37, Giacomo Pati wrote: On Mon, 1 Sep 2003, Reinhard Poetz wrote: On Behalf Of Giacomo Pati On Mon, 1 Sep 2003, Andreas Hochsteger wrote: Hi! Just in case you didn't know: Did you have a

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-01 Thread Giacomo Pati
On Mon, 1 Sep 2003, Reinhard Poetz wrote: From: Bruno Dumon On Mon, 2003-09-01 at 11:37, Giacomo Pati wrote: On Mon, 1 Sep 2003, Reinhard Poetz wrote: On Behalf Of Giacomo Pati On Mon, 1 Sep 2003, Andreas Hochsteger wrote: Hi! Just in case

RE: CommandManager issues [was Re: Releasing 2.1.1?]

2003-09-01 Thread Bruno Dumon
On Mon, 2003-09-01 at 16:29, Giacomo Pati wrote: On Mon, 1 Sep 2003, Bruno Dumon wrote: On Mon, 2003-09-01 at 11:37, Giacomo Pati wrote: On Mon, 1 Sep 2003, Reinhard Poetz wrote: On Behalf Of Giacomo Pati On Mon, 1 Sep 2003, Andreas Hochsteger wrote: Hi!

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-08-31 Thread Bruno Dumon
On Sat, 2003-08-30 at 15:20, Giacomo Pati wrote: Is someone on the Doug Lea list (if there is any) to report this? I got an answer from him, he provided me with a slightly edited change: protected synchronized void workerDone(Worker w) { threads_.remove(w); if (--poolSize_ == 0

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-08-31 Thread Bruno Dumon
On Sat, 2003-08-30 at 17:24, Bruno Dumon wrote: On Sat, 2003-08-30 at 15:20, Giacomo Pati wrote: snip/ I like the way how the Cornerstone Scheduler recently integrated by Carsten more than the CommandManager way because of its componentisation. Still, I like to see a Scheduler as a single

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-08-31 Thread Giacomo Pati
On Sun, 31 Aug 2003, Bruno Dumon wrote: On Sat, 2003-08-30 at 17:24, Bruno Dumon wrote: On Sat, 2003-08-30 at 15:20, Giacomo Pati wrote: snip/ I like the way how the Cornerstone Scheduler recently integrated by Carsten more than the CommandManager way because of its componentisation.

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-08-31 Thread Bruno Dumon
On Sun, 2003-08-31 at 20:38, Giacomo Pati wrote: On Sun, 31 Aug 2003, Bruno Dumon wrote: On Sat, 2003-08-30 at 17:24, Bruno Dumon wrote: On Sat, 2003-08-30 at 15:20, Giacomo Pati wrote: snip/ I like the way how the Cornerstone Scheduler recently integrated by Carsten more than

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-08-31 Thread Giacomo Pati
On Sun, 31 Aug 2003, Bruno Dumon wrote: On Sun, 2003-08-31 at 20:38, Giacomo Pati wrote: First, if you look at the Cornerstone Scheduler you'll see that the ability to define repeated tasks are somehow limited. Business apps can easily request administration tasks to be run twice a day

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-08-31 Thread David Kavanagh
Giacomo Pati wrote: First, if you look at the Cornerstone Scheduler you'll see that the ability to define repeated tasks are somehow limited. Business apps can easily request administration tasks to be run twice a day on work days. To define this with the Cornerstone Scheduler you'll need to

Shutdown bug (was: Re: Releasing 2.1.1?)

2003-08-30 Thread Jeff Turner
On Fri, Aug 29, 2003 at 10:18:40PM +0200, Bruno Dumon wrote: ... [on bug http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18131] ... ok, 10 minutes later now, got an idea: if you add the following code before the closing bracket of the PooledExecutor.workerDone(...) method, then it --seems

Re: Shutdown bug (was: Re: Releasing 2.1.1?)

2003-08-30 Thread Antonio Gallardo
Jeff Turner dijo: On Fri, Aug 29, 2003 at 10:18:40PM +0200, Bruno Dumon wrote: ... [on bug http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18131] ... ok, 10 minutes later now, got an idea: if you add the following code before the closing bracket of the PooledExecutor.workerDone(...)

CommandManager issues [was Re: Releasing 2.1.1?]

2003-08-30 Thread Giacomo Pati
On Fri, 29 Aug 2003, Bruno Dumon wrote: On Fri, 2003-08-29 at 19:55, Giacomo Pati wrote: if you add the following code before the closing bracket of the PooledExecutor.workerDone(...) method, then it --seems to-- work: if (!shutdown_) { if (poolSize_ maximumPoolSize_) {

Re: CommandManager issues [was Re: Releasing 2.1.1?]

2003-08-30 Thread Bruno Dumon
On Sat, 2003-08-30 at 15:20, Giacomo Pati wrote: On Fri, 29 Aug 2003, Bruno Dumon wrote: On Fri, 2003-08-29 at 19:55, Giacomo Pati wrote: if you add the following code before the closing bracket of the PooledExecutor.workerDone(...) method, then it --seems to-- work: if

Re: Releasing 2.1.1?

2003-08-29 Thread Bruno Dumon
On Thu, 2003-08-28 at 08:12, Carsten Ziegeler wrote: Hi, as several of you have already pointed out, a 2.1.1 release seems to make sense. I can make a release next week, but I really would like to have the scheduling (CommandManager) problem fixed in the release. Is anyone working

RE: Releasing 2.1.1?

2003-08-29 Thread Carsten Ziegeler
Have a look at this thread: http://marc.theaimsgroup.com/?l=xml-cocoon-devm=106189194527050w=2 and this bug http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18131 Now, it seems that the CommandManager is not working in all environments. In my it's not working but I don't have the shutdown

Re: Releasing 2.1.1?

2003-08-29 Thread Bruno Dumon
On Fri, 2003-08-29 at 15:35, Berin Loritsch wrote: Bruno Dumon wrote: On Thu, 2003-08-28 at 08:12, Carsten Ziegeler wrote: Hi, as several of you have already pointed out, a 2.1.1 release seems to make sense. I can make a release next week, but I really would like to have the

Re: Releasing 2.1.1?

2003-08-29 Thread Giacomo Pati
On Fri, 29 Aug 2003, Berin Loritsch wrote: Bruno Dumon wrote: On Thu, 2003-08-28 at 08:12, Carsten Ziegeler wrote: Hi, as several of you have already pointed out, a 2.1.1 release seems to make sense. I can make a release next week, but I really would like to have the scheduling

Re: Releasing 2.1.1?

2003-08-29 Thread Giacomo Pati
On Fri, 29 Aug 2003, Bruno Dumon wrote: For me it works with Linux/Sun jdk 1.4.2, it doesn't work with 1.3.1. For Carsten it doesn't work with Windows/jdk 1.4 either. I've done all my testing with the Jetty which ships with Cocoon. I've added some println's here and there and it appears

Re: Releasing 2.1.1?

2003-08-29 Thread Bruno Dumon
On Fri, 2003-08-29 at 19:55, Giacomo Pati wrote: On Fri, 29 Aug 2003, Bruno Dumon wrote: For me it works with Linux/Sun jdk 1.4.2, it doesn't work with 1.3.1. For Carsten it doesn't work with Windows/jdk 1.4 either. I've done all my testing with the Jetty which ships with Cocoon. I've

Re: Releasing 2.1.1?

2003-08-28 Thread Giacomo Pati
On Thu, 28 Aug 2003, Carsten Ziegeler wrote: Hi, as several of you have already pointed out, a 2.1.1 release seems to make sense. I can make a release next week, but I really would like to have the scheduling (CommandManager) problem fixed in the release. Is anyone working already on it?