Client files are in the client directory and there is no default
jndi.properties
file provided by the server. The file you are looking at is for in server
JNDI usage. You need to create a jndi.properties file that has a valid
provider url spepcified.

The documentation examples include a client jndi.properties file in the
examples/resources directory:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory

java.naming.provider.url=localhost:1099

java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
----- Original Message -----
From: "Frank Morton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 01, 2001 7:43 PM
Subject: [JBoss-user] newbie jndi.properties question


> Newbie making great progress thanks to the good docs, but
> have a question about the jndi.properties file.
>
> I think I now understand that the CLASSPATH has to have
> a directory in it that contains a jndi.properties file. But, in
> the provided default jndi.properties file the java.naming.provider.url
> is commented out with a comment that says "Do NOT uncomment
> this line as it causes in VM calls to go over RMI!". But, in
> running the interest example, if I don't have the url defined, I get
> the message "No valid context.PROVIDER_URL".
>
> It makes sense to me that you have to have the host url defined
> or names can't be resolved, but the comment saying not to put
> that there has me confused.
>
> What is the right way to do this?
>
> Thanks.
>
> Frank Morton
> [EMAIL PROTECTED]



_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to