This content has been marked as final.
Show 2 replies
-
1. Re: context.lookup finds Local Home from remote jvm
adrian.brock Mar 18, 2004 2:31 PM (in response to celticprince)Bind your local home in the java:/ namespace if you don't want it to be available
from a remote lookup.
You'll find the local home is completely unusable from a remote VM.
Regards,
Adrian -
2. Re: context.lookup finds Local Home from remote jvm
celticprince May 7, 2004 3:50 PM (in response to celticprince)Adrian,
Thanks for the reply. I know the local is not usable from a remote JVM - hence my surprise that the lookup returned a non-null object for a local. We have code that tries first to find the local home and use that if successful. If an exception is thrown - the lookup fails, then we look for the remote home. This way we don't have to worry if our ServiceLocator is being used inside the container or out.
We'll give your suggestion a try and see if that yields better results.
Thanks again.
Jeff