| Author |
problem with JNDI
|
Mihai Radulescu
Ranch Hand
Joined: Sep 18, 2003
Posts: 912
|
|
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
|
 |
Mihai Radulescu
Ranch Hand
Joined: Sep 18, 2003
Posts: 912
|
|
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: 8143
|
|
|
Which application server?
|
[My Blog] [JavaRanch Journal]
|
 |
Mihai Radulescu
Ranch Hand
Joined: Sep 18, 2003
Posts: 912
|
|
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: 912
|
|
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 ]
|
 |
 |
|
|
subject: problem with JNDI
|
|
|