Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with JNDI

 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which application server?
 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic