Its been about a week. Here is a simple test that works against the current cvs:
jboss 722>cat tstNS.java
import java.util.Properties;
import javax.naming.*;
class tstNS
{
public static void main(String[] args) throws NamingException
{
Properties env = new Properties();
env.setProperty(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
env.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099");
env.setProperty(Context.URL_PKG_PREFIXES ,
"org.jboss.naming:org.jnp.interfaces");
InitialContext ctx = new InitialContext(env);
System.out.println("Connected to JNDI");
}
}
jboss 723>java -classpath "/tmp/cvs/jboss/dist/client/jnp-client.jar;." tstNS
Connected to JNDI
jboss 724>
Most likely your using a jndi.properties that does not include the org.jnp.interfaces
package in the URL_PKG_PREFIXES if this does not work for you.
----- Original Message -----
From: "Jason Dillon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 04, 2001 9:50 PM
Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
> How recently was this added? I am just curious, because the EJB handle
> impl that I added (for container remembrance) would not work if I set the
> url to jnp://<host>:<port>, I had to set it to <host>:<port>.
>
> --jason
>
> On Fri, 4 May 2001, Scott M Stark wrote:
>
> > This is an issue seperate from References of type URL, but the jnp
> > InitialContextFactory does now accept jnp urls passed in via the provider url
> > property.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user