• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems to lookup an EJB3 local stateless session bean

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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







 
knowledge is the difference between drudgery and strategic action -- tiny ad
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic