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_061203_01/01
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user