• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A little help please

 
Praveen john
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have got the latest jboss setup and working.

I am trying to access an ejb from a servlet through the @EJB annotation like
@EJB MyEjbRemote ref; //which is the remote interface

But in the service method when i access the reference ref it is initialized with null value.

I have the remote interface and the implementing bean class properly compiled and jarred up as a .jar file in the jboss deploy folder.

Where am i going wrong here?. I am stuck with this all day now.

Please help
 
vitesse wei
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you check the ejb module deployed in container by JBOSS console,make sure they are correctly deployed.
 
Praveen john
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes vitesse it is correctly deployed. I am using the orielly workbook exmaples which uses a standalone client which does a jndi lookup to acces the ejb's and it works just fine. But the same code is not working through a servlet or through an @EJB annotation.
Thank you for replying
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic