aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Not able to run my first EJB code - Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Not able to run my first EJB code - " Watch "Not able to run my first EJB code - " New topic
Author

Not able to run my first EJB code -

Nancy Antony
Ranch Hand

Joined: Sep 06, 2007
Posts: 145

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

Joined: Jul 20, 2005
Posts: 10266
    
168

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

[My Blog] [JavaRanch Journal]
rex hindlekar
Greenhorn

Joined: Feb 25, 2010
Posts: 16
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Not able to run my first EJB code -