Mail Archive Home | carol List | March 2005 Index
| <-- Date Index --> | <-- Thread Index --> |
Florent,
> But without arguments to InitialContext(), there is no way to
> find out the "right" protocol without choosing a default one
> or if container set the protocol.
sorry, my last example is a cut/paste error, correct version is:
if you do
InitialContext().lookup("dummyTest")
(no hastable to InitialContext), then you can always get the provider url
from Context.getEnvironment(), am I right ?
The content of jndi.properties is loaded into the context.
If no jndi.properties, then rmi is default, if memory serves me well.
If someone wants to override the content of jndi.properties, then yes, it
must call carol API. But this can be done by the container at startup.
Thanks,
Simon
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.