Cannot access a EJB 3.0 bean from a servlet

2007-01-23 Thread Prasad Kashyap
The easiest way to reference a 3.0 EJB is by dependency injection (@EJB). But we don't have annotations working in servlets yet. So if we go back to doing the traditional way of a lookup, we would have to declare a ejb-ref in the web.xml Even if the annotations are processed, they write an

Re: Cannot access a EJB 3.0 bean from a servlet

2007-01-23 Thread David Blevins
Alright, so I figured out how to fix the naming code so that it will work for business interfaces as well as references from servlets to ejb for business interfaces. Dain is hacking it in now. On Jan 23, 2007, at 11:49 AM, Prasad Kashyap wrote: The easiest way to reference a 3.0 EJB is by