You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by mati <ma...@ncdc.pl> on 2003/01/08 15:32:23 UTC
ThreadPool + excalibur event + Cornerstone ThreadManager
I have been trying to use DefaultThreadManager from excalibur event package.
I just do not want to have an additional ThreadPool managed by
TPCThreadManager so I thought I would use the cornerstone one
The problem is that CornerStone uses old ThreadPool
import org.apache.avalon.excalibur.thread.ThreadPool;
which is depracated by now
On the other hand AbstractThreadManager expects to get the new one, and here
we have a problem
import org.apache.excalibur.thread.ThreadPool;
because I get exception:
org.apache.excalibur.containerkit.lifecycle.LifecycleException: Component
named "my-thread-manager" failed to pass through the Initialization stage.
(Reason: java.lang.IncompatibleClassChangeError).
I do not know what is the proper way of solving this problem. I've spotted
that Peter Donald created DefaultThreadManager (excalibur-event) so I am
wondering how did he manage to force these to work with Cornerstone
ThreadManager and it's ThreadPool.
Here is the code snippet:
public void initialize() throws Exception {
//this.threadManager = new TPCThreadManager();
ThreadPool pool = this.cornerStoneThreadManager.getDefaultThreadPool();
this.newThreadManager = new DefaultThreadManager(pool);
this.newThreadManager.enableLogging(getLogger().getChildLogger("excalibur-th
read-manager"));
newThreadManager.initialize();
}
I would appreciate any feedback.
TIA
Mateusz Szczap
mati@no.spam.ncdc.pl
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: ThreadPool + excalibur event + Cornerstone ThreadManager
Posted by mati <ma...@ncdc.pl>.
Could someone please answer my post;
thanks
>
>
> I have been trying to use DefaultThreadManager from excalibur event
package.
>
> I just do not want to have an additional ThreadPool managed by
> TPCThreadManager so I thought I would use the cornerstone one
>
> The problem is that CornerStone uses old ThreadPool
> import org.apache.avalon.excalibur.thread.ThreadPool;
>
> which is depracated by now
>
> On the other hand AbstractThreadManager expects to get the new one, and
here
> we have a problem
> import org.apache.excalibur.thread.ThreadPool;
>
> because I get exception:
>
> org.apache.excalibur.containerkit.lifecycle.LifecycleException: Component
> named "my-thread-manager" failed to pass through the Initialization stage.
> (Reason: java.lang.IncompatibleClassChangeError).
>
> I do not know what is the proper way of solving this problem. I've spotted
> that Peter Donald created DefaultThreadManager (excalibur-event) so I am
> wondering how did he manage to force these to work with Cornerstone
> ThreadManager and it's ThreadPool.
>
>
> Here is the code snippet:
>
> public void initialize() throws Exception {
> file://this.threadManager = new TPCThreadManager();
> ThreadPool pool =
this.cornerStoneThreadManager.getDefaultThreadPool();
> this.newThreadManager = new DefaultThreadManager(pool);
>
>
this.newThreadManager.enableLogging(getLogger().getChildLogger("excalibur-th
> read-manager"));
> newThreadManager.initialize();
> }
>
> I would appreciate any feedback.
>
> TIA
>
> Mateusz Szczap
> mati@no.spam.ncdc.pl
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: ThreadPool + excalibur event + Cornerstone ThreadManager
Posted by mati <ma...@ncdc.pl>.
> I use the two together, but with an older snapshot of excalibur-event.
> -pete
Could you send me this snapshot, because I have tried with some and none
worked.
TIA
Mateusz Szczap
mati@ncdc.pl
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: ThreadPool + excalibur event + Cornerstone ThreadManager
Posted by Peter Royal <pr...@apache.org>.
On Wednesday, January 8, 2003, at 09:32 AM, mati wrote:
> I have been trying to use DefaultThreadManager from excalibur event
> package.
>
> I just do not want to have an additional ThreadPool managed by
> TPCThreadManager so I thought I would use the cornerstone one
>
> The problem is that CornerStone uses old ThreadPool
> import org.apache.avalon.excalibur.thread.ThreadPool;
>
> which is depracated by now
>
> On the other hand AbstractThreadManager expects to get the new one,
> and here
> we have a problem
> import org.apache.excalibur.thread.ThreadPool;
>
> because I get exception:
>
> org.apache.excalibur.containerkit.lifecycle.LifecycleException:
> Component
> named "my-thread-manager" failed to pass through the Initialization
> stage.
> (Reason: java.lang.IncompatibleClassChangeError).
>
> I do not know what is the proper way of solving this problem. I've
> spotted
> that Peter Donald created DefaultThreadManager (excalibur-event) so I
> am
> wondering how did he manage to force these to work with Cornerstone
> ThreadManager and it's ThreadPool.
I use the two together, but with an older snapshot of excalibur-event.
-pete
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>