Yeah, don't do that...
The "java:" namespace is "reserved" in some sense.  It is used to look up
things like environment properties and UserTransactions.  When binding an
EJB to a name, do not use java:.  Look at some of the examples to see the
names they are bound to.  For instance, the cd bean home interface gets a
name like "cd/CDHome" or something.

-Charles


Kevin Lewis wrote:

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

Reply via email to