>From: Roman Porotnikov <[EMAIL PROTECTED]>
>Reply-To: "jBoss" <[EMAIL PROTECTED]>
>To: jBoss <[EMAIL PROTECTED]>
>Subject: RE: [jBoss-User] Naming URL troubles
>Date: Thu, 1 Jun 2000 14:07:12 +0300
>
>I already have solution:
>
> System.setProperty("java.naming.factory.initial",
>"org.jnp.interfaces.NamingContextFactory");
> System.setProperty("java.naming.provider.url", "localhost:1100");
> javax.naming.Context context = new javax.naming.InitialContext();
> PerfectTimeHome home = (PerfectTimeHome)context.lookup("PerfectTime");
>
>Are there some documentation where I can find answers for similar
>questions?
>
>Roman
There should be no need to include the host name / port number information
in your client code, neither in looking up an object nor in setting provider
urls - all this is taken care of in the configuration files you mentioned.
Incidentally, you might want the conf directory in you classpath (sad, but
true) for these config files to be visible.
Cheers,
M
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]