I was considering placing each service in individually, this way, Webapps do
not need to ...

Context ctx = new InitialContext( );
ServiceManager sm =
(ServiceManager)ctx.lookup("java:comp/env/service/ServiceManager");
MyService ms = (MyService)sm.lookup(MyService.ROLE);

Rather just...

Context ctx = new InitialContext( );
MyService ms = (MyService)ctx.lookup("java:comp/env/service/MyService");
Always more than one way to do it :) The benefit of putting the whole ServiceManager in JNDI would be if you have a container hierarchy in your webapp, you could set the ServiceManager from JNDI to be the parent... Supporting both might be good (I'd want the latter).

I have never used AltRMI.  What is autopublish?  I have been working on
its a set of components for phoenix that allow the automatic publishing of a block via altrmi with zero code (you just configure the block to be exported in the config and rest is taken care of.
-pete

--
peter royal -> [EMAIL PROTECTED]


--
To unsubscribe, e-mail: <mailto:avalon-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@;jakarta.apache.org>



Reply via email to