On Wed, 9 Oct 2002 16:34, Paul Hammant wrote:
> Daniel Krieg is going to enhance the Sevak block (or an optional
> extension of it) to register services retrieved from ServiceManager in
> JNDI for the use of WAR file webapps in Catalina in the same JVM.

very kool.

> Unfortunately there is a catch-22.  The assembler must declare services
> in xinfo and the developer must use lookup on ServiceManager to get the
> service in order to register it in JNDI.  If we had a list() method on
> ServiceManager then we would be in position where we could code a block
> that speculatively reads blocks and places them in JNDI.
>
> The other choice would be to declare service names in config, get then
> via configure() then (out of order) retrieve then from ServiceManager.
>
> Thoughts?

Another choice would be to place an object in the context that exposed  all 
the services. Ideally any block that needed this object would declare a 
dependency on it and could then use it to expose all needed stuff.

However another option would be to allow declaration of untyped services. 
Essentially the service could accept "services" of any type and not enforce 
any particular work interface. This sorta sounds like a good way to go but I 
am not sure if I like the notion of un-typed "services"

-- 
Cheers,

Peter Donald
-----------------------------------------------
"Only two things are infinite, the universe and 
human stupidity, and I'm not sure about the 
former." -Albert Einstein 
----------------------------------------------- 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to