File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems to lookup an EJB3 local stateless session bean

 
Giampaolo Franco
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys, it's very nice for me writing my first topic on this forum! I'm adding an EJB3.0 business logic layer to an existing application that use Struts2 and Hibernate3.
I create on NetBeans an enterprise application named Crash (Crash-ejb + Crash-war).

My first goal was to develop a Local Stateless EJB. This is the local interface:



...and this the implementation




My client is on a Struts2 action, in the same application :



I build the application and deploy correctly on AS JBoss 5.1.0. On JMX console I can see that EJB is inside the Global JNDI Namespace:

Global JNDI Namespace
+- Crash (class: org.jnp.interfaces.NamingContext)
| +- EmailIncidenteBean (class: org.jnp.interfaces.NamingContext)
| | +- local-crash.session.email.EmailIncidenteBeanLocal (class: Proxy for: crash.session.email.EmailIncidenteBeanLocal)
| | +- local (class: Proxy for: crash.session.email.EmailIncidenteBeanLocal)


here the details of EJB:
java:comp namespace of the component jboss.j2ee:ear=Crash.ear,jar=Crash-ejb.jar,name=EmailIncidenteBean,service=EJB3 :
+- EJBContext (class: javax.ejb.EJBContext)
+- TransactionSynchronizationRegistry[link -> java:TransactionSynchronizationRegistry] (class: javax.naming.LinkRef)
+- UserTransaction (class: org.jboss.ejb3.tx.UserTransactionImpl)
+- env (class: org.jnp.interfaces.NamingContext)
+- ORB[link -> java:/JBossCorbaORB] (class: javax.naming.LinkRef)

I'm trying to execute the action to lookup the EJB EmailIncidenteBean but always I've this Exception:

javax.naming.NameNotFoundException crash.session.email.EmailIncidenteBean not found.

Did I miss something?
Please, can anybody help?
Thank you.
Giampaolo







 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic