You could probably hack it with multiple invoker bindings in 3.2 But why don't you do it the other way around? Use the external context on the naming server.
Or, have you looked at HAJNDI? xxxxxxxxxxxxxxxxxxxxxxxx Adrian Brock Director of Support Back Office JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: 02 July 2003 23:47 > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] External JNDI > > > I see what you are getting at. > > Is it possible for the EJB to add itself to both the external > naming service > and the internal naming sevice? If it is, can you point me towards an > example or documentation? > > Kevin Christmas > AmeriPath IT - Dallas > -----Original Message----- > From: Adrian Brock [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 02, 2003 4:59 PM > To: [EMAIL PROTECTED] > Subject: RE: [JBoss-user] External JNDI > > > You should have two jndi.properties > > One for the Naming running the server that supplies > the local java: (connection pools, transaction manager, etc) > and ENC (java:comp) > > One for the external context that tells it where the > "jboss" context lives. Try calling it externaljboss.properties? > > Regards, > Adrian > > xxxxxxxxxxxxxxxxxxxxxxxx > Adrian Brock > Director of Support > Back Office > JBoss Group, LLC > xxxxxxxxxxxxxxxxxxxxxxxx > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > [EMAIL PROTECTED] > > Sent: 02 July 2003 21:40 > > To: [EMAIL PROTECTED] > > Subject: RE: [JBoss-user] External JNDI > > > > > > If I remove the java.naming.provider.url property from the > > instance that is > > not providing the naming service, how does it know where to > > connect to? If > > I do that, then I get this execption: > > > > INFO [ExternalContext] Starting > > ERROR [ExternalContext] Starting failed > > javax.naming.CommunicationException: Receive timed out [Root > > exception is > > java.net.SocketTimeoutException: Receive timed out] > > at > > org.jnp.interfaces.NamingContext.discoverServer(NamingContext. > > java:1058) > > at > > org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1158) > > > > Eventually, the two instances will running on seperate machines. > > > > On the instance that is providing the naming service, the > > java.naming.provider.url property is commented out. > > > > Kevin Christmas > > AmeriPath IT - Dallas > > > > -----Original Message----- > > From: Adrian Brock [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, July 02, 2003 2:13 PM > > To: [EMAIL PROTECTED] > > Subject: RE: [JBoss-user] External JNDI > > > > > > Don't supply the provider.url for jboss's jndi.properties, > > this will force jndi to go over rmi. > > > > Once this happens the java: namespace is > > unavailable. > > > > You should put the external context's jndi.properties > > somewhere that jboss's classloaders cannot see it. > > > > xxxxxxxxxxxxxxxxxxxxxxxx > > Adrian Brock > > Director of Support > > Back Office > > JBoss Group, LLC > > xxxxxxxxxxxxxxxxxxxxxxxx > > > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf Of > > > [EMAIL PROTECTED] > > > Sent: 02 July 2003 19:11 > > > To: [EMAIL PROTECTED] > > > Subject: [JBoss-user] External JNDI > > > > > > > > > I am having a problem using the external JNDI. In my > > tests, I get the > > > following error when deploying my jar file: > > > > > > javax.naming.NameNotFoundException: comp not bound > > > > > > I have a minimal instance of JBOSS 3.2.1 running with just > > > the name service > > > running. I am deploying the EJB in a second instance of > > > JBOSS, which has > > > the following in the in the jboss-service.xml: > > > > > > <mbean code="org.jboss.naming.ExternalContext" > > > > > > name="jboss.jndi:service=ExternalContext,jndiName=jboss"> > > > <attribute name="JndiName">jboss</attribute> > > > <attribute name="Properties">jndi.properties</attribute> > > > <attribute name="InitialContext"> > > > javax.naming.InitialContext > > > </attribute> > > > <attribute name="RemoteAccess">true</attribute> > > > </mbean> > > > > > > The second instances jndi.properties are: > > > > java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory > > > java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces > > > java.naming.provider.url=localhost > > > > > > the jboss.xml for the ejb basically looks like this: > > > <session> > > > <ejb-name>ejb/Query</ejb-name> > > > <jndi-name>ejb/Query</jndi-name> > > > <method-attributes> > > > </method-attributes> > > > </session> > > > > > > > > > The desired end result is a central JNDI for multiple > > > instances of JBOSS. > > > > > > Kevin Christmas > > > AmeriPath IT - Dallas > > > > > > > CONFIDENTIALITY NOTICE: This e-mail message, including any > > > attachments, is > > > > for the sole use of the intended recipient(s) and may > > > contain confidential > > > > and privileged information. Any unauthorized review, use, > > > disclosure or > > > > distribution is prohibited. If you are not the intended > > > recipient, please > > > > contact the sender by reply e-mail and destroy all copies > > > of the original > > > > message. > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: Free pre-built ASP.NET > > sites including > > > Data Reports, E-commerce, Portals, and Forums are available now. > > > Download today and enter to win an XBOX or Visual Studio .NET. > > > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06 > > > 1203_01/01 > > > _______________________________________________ > > > JBoss-user mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET > sites including > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06 > > 1203_01/01 > > _______________________________________________ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > ------------------------------------------------------- > > This SF.Net email sponsored by: Free pre-built ASP.NET > sites including > > Data Reports, E-commerce, Portals, and Forums are available now. > > Download today and enter to win an XBOX or Visual Studio .NET. > > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06 > > 1203_01/01 > > _______________________________________________ > > JBoss-user mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06 > 1203_01/01 > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_06 > 1203_01/01 > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user