aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes problem with JNDI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "problem with JNDI" Watch "problem with JNDI" New topic
Author

problem with JNDI

Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

hi

I use eclipse 3.4 and I try to use the eclipse's publish mechanism with a simple bean and after this I try to access this bean with JNDI. The bean is deployed in an EJB Module.
The Bean code looks like :


and the JNDI call looks like :



The deploy is successful but when I run the JNDI I get a :
javax.naming.NameNotFoundException: startBean not found

and I don't understand why ?
Where is the mistake here ?

Thanks in advance,
Mihai
[ September 22, 2008: Message edited by: Mihai Radulescu ]

SCJP, SCJD, SCWCD, OCPJBCD
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

I try now to deploy my bean using an ant file - in this case the bean is part of a "Enterprise application" not a EJB Module. and in this situation it works - the JDNI look-up is successful.

That means there is a difference between a EJB module and a Enterprise Application ?

Thanks in advance,
Mihai
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10263
    
168

Which application server?


[My Blog] [JavaRanch Journal]
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

Hi Jaikiran,

my application server is : Glassfish v2 url 2

Thanks for your interest,
Mihai
[ September 22, 2008: Message edited by: Mihai Radulescu ]
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 918

Oh, that was my fault. I use the wrong project in the server (eclipse settings).
After I add the actual project to the local server my client can do the JNDI call.
[ September 22, 2008: Message edited by: Mihai Radulescu ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with JNDI