You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Carsten Ziegeler <cz...@s-und-n.de> on 2003/08/21 09:14:58 UTC
[Cornerstone] DefaultTimeScheduler is SingleThreaded?
Hi,
I just looked at the DefaultTimeScheduler implementation and
it does neither implement Poolable nor ThreadSafe. So it defaults
to SingleThreaded (when I use it with ECM), no?
Is this a bug or did I oversee something?
Thanks
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: [Cornerstone] DefaultTimeScheduler is SingleThreaded?
Posted by Berin Loritsch <bl...@apache.org>.
Stephen McConnell wrote:
>
>
> Berin Loritsch wrote:
>
>> Carsten Ziegeler wrote:
>>
>>> Hi,
>>>
>>> I just looked at the DefaultTimeScheduler implementation and
>>> it does neither implement Poolable nor ThreadSafe. So it defaults
>>> to SingleThreaded (when I use it with ECM), no?
>>>
>>> Is this a bug or did I oversee something?
>>
>>
>>
>> ECM uses the deprecated ThreadSafe, SIngleThreaded and Poolable
>> interfaces,
>> which none of the new containers really support. When ECM doesn't
>> find any
>> interfaces it makes the safest guess it can--SingleThreaded.
>
>
>
> Isn't transient the safest guess?
In ECM speak, SingleThreaded == transient.
So yes. We are using different terms for the same thing.
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: [Cornerstone] DefaultTimeScheduler is SingleThreaded?
Posted by Stephen McConnell <mc...@apache.org>.
Berin Loritsch wrote:
> Carsten Ziegeler wrote:
>
>> Hi,
>>
>> I just looked at the DefaultTimeScheduler implementation and
>> it does neither implement Poolable nor ThreadSafe. So it defaults
>> to SingleThreaded (when I use it with ECM), no?
>>
>> Is this a bug or did I oversee something?
>
>
> ECM uses the deprecated ThreadSafe, SIngleThreaded and Poolable
> interfaces,
> which none of the new containers really support. When ECM doesn't
> find any
> interfaces it makes the safest guess it can--SingleThreaded.
Isn't transient the safest guess?
Stephen.
>
>
> Fortress, Merlin, and Phoenix all have ways of letting the container know
> what the component requires. For Pheonix, they are always
> ThreadSafe. For
> Fortress and Merlin, they allow the metadata to dictate how it works.
>
--
Stephen J. McConnell
mailto:mcconnell@apache.org
http://www.osm.net
Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: [Cornerstone] DefaultTimeScheduler is SingleThreaded?
Posted by Berin Loritsch <bl...@apache.org>.
Carsten Ziegeler wrote:
> Hi,
>
> I just looked at the DefaultTimeScheduler implementation and
> it does neither implement Poolable nor ThreadSafe. So it defaults
> to SingleThreaded (when I use it with ECM), no?
>
> Is this a bug or did I oversee something?
ECM uses the deprecated ThreadSafe, SIngleThreaded and Poolable interfaces,
which none of the new containers really support. When ECM doesn't find any
interfaces it makes the safest guess it can--SingleThreaded.
Fortress, Merlin, and Phoenix all have ways of letting the container know
what the component requires. For Pheonix, they are always ThreadSafe. For
Fortress and Merlin, they allow the metadata to dictate how it works.
--
"They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety."
- Benjamin Franklin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
RE: [Cornerstone] DefaultTimeScheduler is SingleThreaded?
Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Giacomo Pati wrote:
> In general Cornerstone Components are build to be used in a
> DefaultComponentManager (read Avalon Phoenix) and do not respect
> additional features like ECM does with ThreadSafe etc.
>
> Components in Phoenix need to be thread safe anyway.
>
Thanks for the info, Giacomo!
I guessed this and wrote ECM extensions for them to make them usable
with Cocoon :(
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
RE: [Cornerstone] DefaultTimeScheduler is SingleThreaded?
Posted by Giacomo Pati <gi...@apache.org>.
On Thu, 21 Aug 2003, Carsten Ziegeler wrote:
> Stephen McConnell wrote:
> >
> > Carsten Ziegeler wrote:
> >
> > >Hi,
> > >
> > >I just looked at the DefaultTimeScheduler implementation and
> > >it does neither implement Poolable nor ThreadSafe. So it defaults
> > >to SingleThreaded (when I use it with ECM), no?
> > >
> >
> > DefaultTimeScheduled is a thread safe component typically deployed as a
> > singleton.
> >
> Ok, but it doesn't declare o.a.a.f.thread.ThreadSafe which makes it
> SingleThreaded in ECM.
In general Cornerstone Components are build to be used in a
DefaultComponentManager (read Avalon Phoenix) and do not respect
additional features like ECM does with ThreadSafe etc.
Components in Phoenix need to be thread safe anyway.
--
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
RE: [Cornerstone] DefaultTimeScheduler is SingleThreaded?
Posted by Carsten Ziegeler <cz...@s-und-n.de>.
Stephen McConnell wrote:
>
> Carsten Ziegeler wrote:
>
> >Hi,
> >
> >I just looked at the DefaultTimeScheduler implementation and
> >it does neither implement Poolable nor ThreadSafe. So it defaults
> >to SingleThreaded (when I use it with ECM), no?
> >
>
> DefaultTimeScheduled is a thread safe component typically deployed as a
> singleton.
>
Ok, but it doesn't declare o.a.a.f.thread.ThreadSafe which makes it
SingleThreaded in ECM.
Carsten
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: [Cornerstone] DefaultTimeScheduler is SingleThreaded?
Posted by Stephen McConnell <mc...@apache.org>.
Carsten Ziegeler wrote:
>Hi,
>
>I just looked at the DefaultTimeScheduler implementation and
>it does neither implement Poolable nor ThreadSafe. So it defaults
>to SingleThreaded (when I use it with ECM), no?
>
DefaultTimeScheduled is a thread safe component typically deployed as a
singleton.
Stephen.
>
>Is this a bug or did I oversee something?
>
>Thanks
>Carsten
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
>For additional commands, e-mail: dev-help@avalon.apache.org
>
>
>
>
>
--
Stephen J. McConnell
mailto:mcconnell@apache.org
http://www.osm.net
Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org