> > Which is not a problem ,except that there is no list() method for
> > Sevak to read them as named
> > Objects and shove them into the JNDI tree as objects.
>
> But Sevak would put the ServiceManager into JNDI, not the individual
> services themselves...
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");

>
> > All in all, I can't help feeling that the optimizing RMI / AltRMI
> > route is cleaner.  With
> > autopublish for AltRMI in Cornerstone, half the work is done already.
>
> it is :)
I have never used AltRMI.  What is autopublish?  I have been working on
binding a Service into JNDI within Catalina and have been encountering
problems.  The approach I have been taking is to have the server bind the
Service into JNDI and use a custom ObjectFactory that can lookup that
binding and return it.  The Web app calls for
"java:comp/env/service/MyService" for example.  The ObjectFactory is passed
a property specifying the actual binding, performs a lookup and returns it.
The problem I am currently having is that the ObjectFactory is not locating
the binding.  However, something I have considered is binding the Service
object into another NamingSystem (RMIRegistry or something similar) and have
the ObjectFactory pull the service from there.

Any thoughts?


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

Reply via email to