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_061203_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

Reply via email to