Keving,
If your client is other bean then you use the java:comp/env/ejb/name format,
but if you client is a java program, servlet or JSP then you use ("JNDIBeanName")
format for the lookup.
hoppe this helps
-Regards Rolando
---------- Original Message ----------------------------------
From: "Kevin Lewis" <[EMAIL PROTECTED]>
Reply-To: "jBoss" <[EMAIL PROTECTED]>
Date: Fri, 29 Sep 2000 09:09:32 -0500
>Hi, everyone.
>
>I have a bean that I am deploying. I am giving it a JNDI name of the
>form:
>
> java:comp/env/ejb/name
>
>However, when my client tries to lookup the name, RMI (I'm assuming)
>returns:
>
>javax.naming.NameNotFoundException: comp not bound
> at
>sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
>Source)
> at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown
>Source)
> at sun.rmi.server.UnicastRef.invoke(Unknown Source)
> at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
> at
>org.jnp.interfaces.NamingContext.lookup(NamingContext.java:280)
> at
>org.jnp.interfaces.NamingContext.lookup(NamingContext.java:265)
> at javax.naming.InitialContext.lookup(Unknown Source)
>.....
>
>If I give the bean a simple name (like "name") my client can look it up
>just fine.
>
>Is this a problem with how I'm deploying the bean, with RMI, or with
>jBoss?
>
>Thanks for any help.
>
>--
>Kevin Lewis
>Middle Reliever
>Axys Solutions
>http://www.AxysSolutions.com/
>
>
>--
>--------------------------------------------------------------
>To subscribe: [EMAIL PROTECTED]
>To unsubscribe: [EMAIL PROTECTED]
>Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]