Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
The only fix is to use the latest cvs version and make sure your jndi.properties includes both the org.jboss.naming and org.jnp.interfaces in the Context.URL_PKG_PREFIXES, for example: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=jnp://serverhost:1099 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces - Original Message - From: "Eric Lindauer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 09, 2001 7:29 AM Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... > Hi Scott, > > I got the same exception as Guy Roulier below. I'm having trouble following > the conversation you seem to have had with him about how to fix this > problem... > Would you mind repeating the fix to me? > > I have not done any security policy configuration. Using jnp:// does not > work > either connecting from the same machine ( where "localhost:1099" does work ) > or from a different machine. They both produce the exception listed. > > Thanks very much, >Eric > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
Hi Scott, I got the same exception as Guy Roulier below. I'm having trouble following the conversation you seem to have had with him about how to fix this problem... Would you mind repeating the fix to me? I have not done any security policy configuration. Using jnp:// does not work either connecting from the same machine ( where "localhost:1099" does work ) or from a different machine. They both produce the exception listed. Thanks very much, Eric trying with protocol jnp://:1099 Got context javax.naming.ServiceUnavailableException: jnp. Root exception is java.net.Unkno wnHostException: jnp at java.net.InetAddress.getAllByName0(InetAddress.java:571) at java.net.InetAddress.getAllByName0(InetAddress.java:540) at java.net.InetAddress.getByName(InetAddress.java:449) at java.net.Socket.(Socket.java:100) at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:94) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:693) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:286) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279) at javax.naming.InitialContext.lookup(InitialContext.java:350) at TestClient.main(TestClient.java:36) javax.naming.ServiceUnavailableException: jnp [Root exception is java.net.Unknow nHostException: jnp] - Original Message - From: "Scott M Stark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 08, 2001 7:07 PM Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... > It works fine for me from the client: > > /tmp 586> java tstNS > Connecting to JNDI, env={java.naming.provider.url=jnp://localhost:1299, > java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, > java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} > Connected to JNDI > jnp://localhost:1299/queue -> org.jnp.interfaces.NamingContext@112b29b > queue -> org.jnp.interfaces.NamingContext@112a2f1 > /tmp 587>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:1299"); > env.setProperty(Context.URL_PKG_PREFIXES , "org.jboss.naming:org.jnp.interfaces"); > System.out.println("Connecting to JNDI, env="+env); > InitialContext ctx = new InitialContext(env); > System.out.println("Connected to JNDI"); > Object tmp = ctx.lookup("jnp://localhost:1299/queue"); > System.out.println("jnp://localhost:1299/queue -> "+tmp); > tmp = ctx.lookup("queue"); > System.out.println("queue -> "+tmp); > } > } > > - Original Message - > From: "Guy Rouillier" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, May 07, 2001 12:15 PM > Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... > > > > Scott, I used this approach and it does as you say - thanks. One more > > question regarding jnp: is this protocol only used between 2 instances of > > JBoss? I tried to use jnp://myserver:1299 from a command line client, and > > was told > > > > Exception caught: javax.naming.ServiceUnavailableException: jnp [Root > > exception > > is java.net.UnknownHostException: jnp] > > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
It works fine for me from the client: /tmp 586> java tstNS Connecting to JNDI, env={java.naming.provider.url=jnp://localhost:1299, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} Connected to JNDI jnp://localhost:1299/queue -> org.jnp.interfaces.NamingContext@112b29b queue -> org.jnp.interfaces.NamingContext@112a2f1 /tmp 587>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:1299"); env.setProperty(Context.URL_PKG_PREFIXES , "org.jboss.naming:org.jnp.interfaces"); System.out.println("Connecting to JNDI, env="+env); InitialContext ctx = new InitialContext(env); System.out.println("Connected to JNDI"); Object tmp = ctx.lookup("jnp://localhost:1299/queue"); System.out.println("jnp://localhost:1299/queue -> "+tmp); tmp = ctx.lookup("queue"); System.out.println("queue -> "+tmp); } } - Original Message - From: "Guy Rouillier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 12:15 PM Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... > Scott, I used this approach and it does as you say - thanks. One more > question regarding jnp: is this protocol only used between 2 instances of > JBoss? I tried to use jnp://myserver:1299 from a command line client, and > was told > > Exception caught: javax.naming.ServiceUnavailableException: jnp [Root > exception > is java.net.UnknownHostException: jnp] > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Anyone know how to federate across multiple jnp ...
I believe that I am close, but I still have no cigar. Having read most of the jnp code, I realize that JNP has implemented LinkRef and not Reference as I first thought. In looking through org.jnp.client.Mail, I see that LinkRef is supportted and that the use of it is to bind a LinkRef object with an embedded URL. This URL may start with jnp://somemachine:someport. So I run an experiment with 2 separate instances of JBoss running on the same machine and I have Naming enabled on two different ports (1099, 1098). I basically do a bind of: env = new Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); env.put(Context.PROVIDER_URL, "syan.zantaz.com:1099"); env.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces"); InitialContext ic = new InitialContext(env); ... create a couple of intermediate levels of name foo ... ... create a NamingContext nc pointing to foo ... nc.bind("linksomewhere", new LinkRef(jnp://syan.zantaz.com:1098/foo1)); // this already exists ... later in the code I do ... Context ctx = ic.lookup("foo/linksomewhere"); At this point, I am getting the following exception. Am I using this incorrectly? javax.naming.NameNotFoundException: foo1 not bound at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC all.java:245) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:298) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:282) at javax.naming.InitialContext.lookup(InitialContext.java:350) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:370) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:282) at javax.naming.InitialContext.lookup(InitialContext.java:350) at com.zantaz.base.temp.Test6.run(Test6.java:89) at com.zantaz.base.temp.Test6.main(Test6.java:21) In walking through the code, it looks like env for the InitialContext is reapplied for LinkRef. This seems incorrect to me, but I don't claim to understand everything. Sam -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 06, 2001 11:41 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... jnp is the name of the jndi provider used by JBoss and is the protocol url just as t3 is the weblogic's. The jnp.properties file is used as the default values. If you don't set the port values via the NamingService mbean attributes then the jnp.properties file is used. This jboss.jcml entry: along with this jnp.properties file: ### JNP server configuration jnp.port=1299 jnp.rmiPort=0 results in the naming service starting on port 1299: ... [Naming] Starting [Naming] Starting jnp server [Naming] Started jnpPort=1299, rmiPort=0 [Naming] Naming started on port 1299 [Naming] Started The - Original Message - From: "Guy Rouillier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 10:53 AM Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... > > 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); > > I left this in jboss.jcml: > > >name="DefaultDomain:service=Naming"> > 1099 > > > and changed jnp.properties to this: > > jnp.port=1299 > jnp.log=true > > My client could connect with this in its jndi.properties file: > > java.naming.provider.url=w2k-pro OR > java.naming.provider.url=w2k-pro:1099 > > but failed when I put this in jndi.properties: > > java.naming.provider.url=jnp://w2k-pro:1299 > > with the following error: > > Exception caught: javax.naming.ServiceUnavailableException: jnp [Root > exception > is java.net.UnknownHostException: jnp] > > Obviously, I'm confused. > > (1) What is the relationship between jnp and jndi? > (2) When is jnp used? In the default configuration, I only see the naming > service specified in the jboss.jcml mbean started, as follows: > > [Naming]
Re: [JBoss-user] Anyone know how to federate across multiple jnp...
Ok, I double checked (with the latest CVS JBoss), with the following: from java.lang import *; from java.util import *; from javax.naming import *; env = Hashtable(); env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); env.put(Context.PROVIDER_URL, "jnp://reason.boldfish.com:1099"); env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); print env; ctx = InitialContext(env); print ctx print ctx.lookup("java:/Mail"); ctx.close(); Using a classpath with the following: jython.jar activation.jar mail.jar jndi.jar jboss-client.jar jbosssx-client.jar jbossmq-client.jar jnp-client.jar Will produce this output: {java.naming.provider.url=jnp://reason.boldfish.com:1099, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces} javax.naming.InitialContext@30fc1f Traceback (innermost last): File "/home/jason/tmp/test.py", line 14, in ? javax.naming.ServiceUnavailableException: jnp. Root exception is java.net.UnknownHostException: jnp at java.net.InetAddress.getAllByName0(InetAddress.java:571) at java.net.InetAddress.getAllByName0(InetAddress.java:540) at java.net.InetAddress.getByName(InetAddress.java:449) at java.net.Socket.(Socket.java:100) at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:102) at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:763) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:340) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333) at javax.naming.InitialContext.lookup(InitialContext.java:350) at java.lang.reflect.Method.invoke(Native Method) at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:158) at org.python.core.PyMethod.__call__(PyMethod.java:83) at org.python.core.PyObject.__call__(PyObject.java:272) at org.python.core.PyInstance.invoke(PyInstance.java:275) at org.python.pycode._pyx0.f$0(/home/jason/tmp/test.py) at org.python.pycode._pyx0.call_function(/home/jason/tmp/test.py) at org.python.core.PyTableCode.call(PyTableCode.java:155) at org.python.core.Py.runCode(Py.java:1055) at org.python.core.__builtin__.execfile(__builtin__.java:288) at org.python.core.__builtin__.execfile(__builtin__.java:292) at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:155) at org.python.util.jython.main(jython.java:159) javax.naming.ServiceUnavailableException: javax.naming.ServiceUnavailableException: jnp [Root exception is java.net.UnknownHostException: jnp] So I can create an InitialContext, but as soon as I try to lookup anything I will get an exception. --jason On Sun, 6 May 2001, Jason Dillon wrote: > I will check again. I do belive that this will work, but I think that > there might be a problem when it comes to using lookup() on the > InitialContext. I will try this again and let you know... I might be > doing something wrong =) > > --jason > > > On Sat, 5 May 2001, Scott M Stark wrote: > > > 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 > >
Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
Hi all, Guy Rouillier wrote: > Scott, thanks very much for the explanation. The reason I am doing this is > that for security purposes, we want to move as much as possible off the > standard ports (we'll have a firewall.) Is there anywhere an all-inclusive > list of the ports that JBoss uses (out of the box - er, zip - I realize > JBoss allows additional functionality to be plugged in), and how to change > them? ... A list of used ports can be found in the JBoss online docs at http://www.jboss.org/documentation/HTML/ch10s03.html regards Georg ___ ___ | + | |__Georg Rehfeld Woltmanstr. 12 20097 Hamburg |_|_\ |___ [EMAIL PROTECTED] +49 (40) 23 53 27 10 ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
Scott, I used this approach and it does as you say - thanks. One more question regarding jnp: is this protocol only used between 2 instances of JBoss? I tried to use jnp://myserver:1299 from a command line client, and was told Exception caught: javax.naming.ServiceUnavailableException: jnp [Root exception is java.net.UnknownHostException: jnp] - Original Message - From: "Scott M Stark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 2:41 AM Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... > jnp is the name of the jndi provider used by JBoss and is the protocol > url just as t3 is the weblogic's. > The jnp.properties file is used as the default values. If you don't set the port > values via the NamingService mbean attributes then the jnp.properties file > is used. > > This jboss.jcml entry: > > along with this jnp.properties file: > ### JNP server configuration > jnp.port=1299 > jnp.rmiPort=0 > > results in the naming service starting on port 1299: ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
Scott, thanks very much for the explanation. The reason I am doing this is that for security purposes, we want to move as much as possible off the standard ports (we'll have a firewall.) Is there anywhere an all-inclusive list of the ports that JBoss uses (out of the box - er, zip - I realize JBoss allows additional functionality to be plugged in), and how to change them? I know clients contact the naming service on 1099. Does this work like ftp, where the server will immediately spin off another port to carry on the conversation so that 1099 stays free for the next client? After lookup is complete and client instantiates the ejb remote interface, is there any way to know what port on the server side will be used for the ejb to talk to the client? Must we use a custom socket factory for that? > This jboss.jcml entry: > > along with this jnp.properties file: > ### JNP server configuration > jnp.port=1299 > jnp.rmiPort=0 > > results in the naming service starting on port 1299: ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
jnp is the name of the jndi provider used by JBoss and is the protocol url just as t3 is the weblogic's. The jnp.properties file is used as the default values. If you don't set the port values via the NamingService mbean attributes then the jnp.properties file is used. This jboss.jcml entry: along with this jnp.properties file: ### JNP server configuration jnp.port=1299 jnp.rmiPort=0 results in the naming service starting on port 1299: ... [Naming] Starting [Naming] Starting jnp server [Naming] Started jnpPort=1299, rmiPort=0 [Naming] Naming started on port 1299 [Naming] Started The - Original Message - From: "Guy Rouillier" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 10:53 AM Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... > > 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); > > I left this in jboss.jcml: > > >name="DefaultDomain:service=Naming"> > 1099 > > > and changed jnp.properties to this: > > jnp.port=1299 > jnp.log=true > > My client could connect with this in its jndi.properties file: > > java.naming.provider.url=w2k-pro OR > java.naming.provider.url=w2k-pro:1099 > > but failed when I put this in jndi.properties: > > java.naming.provider.url=jnp://w2k-pro:1299 > > with the following error: > > Exception caught: javax.naming.ServiceUnavailableException: jnp [Root > exception > is java.net.UnknownHostException: jnp] > > Obviously, I'm confused. > > (1) What is the relationship between jnp and jndi? > (2) When is jnp used? In the default configuration, I only see the naming > service specified in the jboss.jcml mbean started, as follows: > > [Naming] Starting > [Naming] [Naming] Started on port 1099 > [Naming] Naming started on port 1099 > [Naming] Started > > When does jnp come into play, and when does jnp.properties get used? > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
> 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); I left this in jboss.jcml: 1099 and changed jnp.properties to this: jnp.port=1299 jnp.log=true My client could connect with this in its jndi.properties file: java.naming.provider.url=w2k-pro OR java.naming.provider.url=w2k-pro:1099 but failed when I put this in jndi.properties: java.naming.provider.url=jnp://w2k-pro:1299 with the following error: Exception caught: javax.naming.ServiceUnavailableException: jnp [Root exception is java.net.UnknownHostException: jnp] Obviously, I'm confused. (1) What is the relationship between jnp and jndi? (2) When is jnp used? In the default configuration, I only see the naming service specified in the jboss.jcml mbean started, as follows: [Naming] Starting [Naming] [Naming] Started on port 1099 [Naming] Naming started on port 1099 [Naming] Started When does jnp come into play, and when does jnp.properties get used? ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp...
I will check again. I do belive that this will work, but I think that there might be a problem when it comes to using lookup() on the InitialContext. I will try this again and let you know... I might be doing something wrong =) --jason On Sat, 5 May 2001, Scott M Stark wrote: > 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://:, I had to set it to :. > > > > --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 > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
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://:, I had to set it to :. > > --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
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://:, I had to set it to :. --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. > > - Original Message - > From: "Jason Dillon" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Friday, May 04, 2001 7:25 PM > Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... > > > > Does this mean that jnp should accept more URL-like strings for > > Context.PROVIDER_URL inside the environment properties for an InitialContext: > > > > jnp://localhost:1099 > > > > I do not believe that it does. > > > > --jason > > > > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
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. - Original Message - From: "Jason Dillon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, May 04, 2001 7:25 PM Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... > Does this mean that jnp should accept more URL-like strings for > Context.PROVIDER_URL inside the environment properties for an InitialContext: > > jnp://localhost:1099 > > I do not believe that it does. > > --jason > > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp...
Does this mean that jnp should accept more URL-like strings for Context.PROVIDER_URL inside the environment properties for an InitialContext: jnp://localhost:1099 I do not believe that it does. --jason On Thu, 3 May 2001, Scott M Stark wrote: > Yes, jnp properly resovles references of type URL. > > - Original Message - > From: "Sam Yan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, May 03, 2001 1:24 PM > Subject: RE: [JBoss-user] Anyone know how to federate across multiple jnp ... > > > > I looked for the example and must have missed something. Also, I believe > > that I need to be more exact in my language, because it is easy to say > > something subtlety different than what I really meant. Please forgive me > > for my inaccuracy and any help from a knowledgeable person is greatly > > appreciated. > > > > I realize that you can use absolute url paths (i.e. use > > jnp://machine:port/somewhere) if one keeps around the url for all instances > > or JNDI, or in this case jnp. What I was hoping for and am still uncertain > > as to whether jnp supports is the ability to bind a javax.naming.Reference, > > which contains a javax.naming.StringRefAddr that specifies a URL federated > > to another name space. JNDI supports this as "URLs as References for > > Federation". This saves complexity in the code by not having to keep urls > > around. Then urls can be obtained on the fly (within JNDI) and not > > explicitly specified. This allows for in context lookups which unites name > > space context with federation of name spaces. > > > > We have a very complicated problem where our name space will continue to > > grow and grow. It would be great to be able to stitch together name spaces > > using this technique. Then we have separated a configuration problem from a > > programing problem. > > > > Thanks again! > > > > Sam > > -Original Message- > > From: Guy Rouillier [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, May 02, 2001 6:02 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [JBoss-user] Anyone know how to federate across multiple > > jnp ... > > > > > > I provided an example of this just yesterday. > > > > - Original Message - > > From: "Sam" <[EMAIL PROTECTED]> > > To: "JBOSS" <[EMAIL PROTECTED]> > > Sent: Wednesday, May 02, 2001 6:04 PM > > Subject: [JBoss-user] Anyone know how to federate across multiple jnp ... > > > > > > > Has anyone tried creating a URL reference to bind in jnp such that it > > > references another jnp on another instances of JBoss? > > > > > > I get confused when looking for a URL scheme name on a name space based on > > > jnp (i.e. ldap would look like ldap:/machine/dc=root). All examples while > > > using jnp don't require a scheme name. > > > > > > Does anyone know if jnp supports url references? > > > > > > Any help is appreciated! > > > > > > Sam > > > > > > ___ > > > JBoss-user mailing list > > > [EMAIL PROTECTED] > > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
Yes, jnp properly resovles references of type URL. - Original Message - From: "Sam Yan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 03, 2001 1:24 PM Subject: RE: [JBoss-user] Anyone know how to federate across multiple jnp ... > I looked for the example and must have missed something. Also, I believe > that I need to be more exact in my language, because it is easy to say > something subtlety different than what I really meant. Please forgive me > for my inaccuracy and any help from a knowledgeable person is greatly > appreciated. > > I realize that you can use absolute url paths (i.e. use > jnp://machine:port/somewhere) if one keeps around the url for all instances > or JNDI, or in this case jnp. What I was hoping for and am still uncertain > as to whether jnp supports is the ability to bind a javax.naming.Reference, > which contains a javax.naming.StringRefAddr that specifies a URL federated > to another name space. JNDI supports this as "URLs as References for > Federation". This saves complexity in the code by not having to keep urls > around. Then urls can be obtained on the fly (within JNDI) and not > explicitly specified. This allows for in context lookups which unites name > space context with federation of name spaces. > > We have a very complicated problem where our name space will continue to > grow and grow. It would be great to be able to stitch together name spaces > using this technique. Then we have separated a configuration problem from a > programing problem. > > Thanks again! > > Sam > -Original Message- > From: Guy Rouillier [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 02, 2001 6:02 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-user] Anyone know how to federate across multiple > jnp ... > > > I provided an example of this just yesterday. > > - Original Message - > From: "Sam" <[EMAIL PROTECTED]> > To: "JBOSS" <[EMAIL PROTECTED]> > Sent: Wednesday, May 02, 2001 6:04 PM > Subject: [JBoss-user] Anyone know how to federate across multiple jnp ... > > > > Has anyone tried creating a URL reference to bind in jnp such that it > > references another jnp on another instances of JBoss? > > > > I get confused when looking for a URL scheme name on a name space based on > > jnp (i.e. ldap would look like ldap:/machine/dc=root). All examples while > > using jnp don't require a scheme name. > > > > Does anyone know if jnp supports url references? > > > > Any help is appreciated! > > > > Sam > > > > ___ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > http://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Anyone know how to federate across multiple jnp ...
I looked for the example and must have missed something. Also, I believe that I need to be more exact in my language, because it is easy to say something subtlety different than what I really meant. Please forgive me for my inaccuracy and any help from a knowledgeable person is greatly appreciated. I realize that you can use absolute url paths (i.e. use jnp://machine:port/somewhere) if one keeps around the url for all instances or JNDI, or in this case jnp. What I was hoping for and am still uncertain as to whether jnp supports is the ability to bind a javax.naming.Reference, which contains a javax.naming.StringRefAddr that specifies a URL federated to another name space. JNDI supports this as "URLs as References for Federation". This saves complexity in the code by not having to keep urls around. Then urls can be obtained on the fly (within JNDI) and not explicitly specified. This allows for in context lookups which unites name space context with federation of name spaces. We have a very complicated problem where our name space will continue to grow and grow. It would be great to be able to stitch together name spaces using this technique. Then we have separated a configuration problem from a programing problem. Thanks again! Sam -Original Message- From: Guy Rouillier [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 6:02 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Anyone know how to federate across multiple jnp ... I provided an example of this just yesterday. - Original Message - From: "Sam" <[EMAIL PROTECTED]> To: "JBOSS" <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2001 6:04 PM Subject: [JBoss-user] Anyone know how to federate across multiple jnp ... > Has anyone tried creating a URL reference to bind in jnp such that it > references another jnp on another instances of JBoss? > > I get confused when looking for a URL scheme name on a name space based on > jnp (i.e. ldap would look like ldap:/machine/dc=root). All examples while > using jnp don't require a scheme name. > > Does anyone know if jnp supports url references? > > Any help is appreciated! > > Sam > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
I provided an example of this just yesterday. - Original Message - From: "Sam" <[EMAIL PROTECTED]> To: "JBOSS" <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2001 6:04 PM Subject: [JBoss-user] Anyone know how to federate across multiple jnp ... > Has anyone tried creating a URL reference to bind in jnp such that it > references another jnp on another instances of JBoss? > > I get confused when looking for a URL scheme name on a name space based on > jnp (i.e. ldap would look like ldap:/machine/dc=root). All examples while > using jnp don't require a scheme name. > > Does anyone know if jnp supports url references? > > Any help is appreciated! > > Sam > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
Yesterday we had a post on the list which was about specifying a jnp reference to an external bean ... the reference looked like jnp://192.168.1.102:1099/guyr/DbSource Any help? Vinay - Original Message - From: Sam Sent: Wednesday, May 02, 2001 11:39 PM To: JBOSS Subject: [JBoss-user] Anyone know how to federate across multiple jnp ... Has anyone tried creating a URL reference to bind in jnp such that itreferences another jnp on another instances of JBoss?I get confused when looking for a URL scheme name on a name space based onjnp (i.e. ldap would look like ldap:/machine/dc=root). All examples whileusing jnp don't require a scheme name.Does anyone know if jnp supports url references?Any help is appreciated!Sam___JBoss-user mailing list[EMAIL PROTECTED]http://lists.sourceforge.net/lists/listinfo/jboss-user Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: [JBoss-user] Anyone know how to federate across multiple jnp ...
This works in the latest cvs branch. - Original Message - From: "Sam" <[EMAIL PROTECTED]> To: "JBOSS" <[EMAIL PROTECTED]> Sent: Wednesday, May 02, 2001 3:04 PM Subject: [JBoss-user] Anyone know how to federate across multiple jnp ... > Has anyone tried creating a URL reference to bind in jnp such that it > references another jnp on another instances of JBoss? > > I get confused when looking for a URL scheme name on a name space based on > jnp (i.e. ldap would look like ldap:/machine/dc=root). All examples while > using jnp don't require a scheme name. > > Does anyone know if jnp supports url references? > > Any help is appreciated! > > Sam > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user > ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Anyone know how to federate across multiple jnp ...
Has anyone tried creating a URL reference to bind in jnp such that it references another jnp on another instances of JBoss? I get confused when looking for a URL scheme name on a name space based on jnp (i.e. ldap would look like ldap:/machine/dc=root). All examples while using jnp don't require a scheme name. Does anyone know if jnp supports url references? Any help is appreciated! Sam ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user