Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to run my first EJB code -

 
Nancy Antony
Ranch Hand
Posts: 145
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wrote my first EJ Bean with the following code


and when I run it this is the error it is giving me - what should I do to run it?


Regards,
Nancy
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depending on the application server you are using (looks like JBoss), you will have to use the admin interface which shows the JNDI view of the server. (In JBoss you can use the jmx-console's JNDIView MBean). You can then check the jndi tree to find out the jndi name of your EJB and use that jndi name for the lookup. For JBoss see this
 
rex hindlekar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Jai,

In use JBoss 5.1.0 and screenshots vary a little but thanks for the link.

I still have the same problem as Nancy. You can refer to my post too.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic