• 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

Explain why this IS working(RAD 7 +EJB 2.1)

 
Ranch Hand
Posts: 608
Eclipse IDE Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I've just managed to get a 2.1 EJB to work from a servlet(been struggling for a while).What I would like to know is how come it's working just fine when I haven't put an ejb-ref element in the web.xml.

This is what I've done:

Create EAR project
Create EJB project with EJB client jar(inside EAR)
Create Dynamic Web Project inside EAR.
Add client jar to web project's build path.
Create EJB reference

I'm guessing that having ejb-ref elements in the ejb-jar.xml is the reason why I dont need it in the web.xml..Anyone care to elaborate?
Also,I call remove on the ejb but I dont get any output(my ejbcreate method returns output though)
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Duran,
The ejb reference is good practice, but optional. Nothing prevents you from using the full JNDI name to call an EJB.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic