This content has been marked as final. 
    
Show                 4 replies
    
- 
        1. Re: Problem injecting EJBspmuir Apr 30, 2007 9:47 AM (in response to nstoddar)Use the standard @EJB 
- 
        2. Re: Problem injecting EJBsnstoddar Apr 30, 2007 10:57 AM (in response to nstoddar)"petemuir" wrote: 
 Use the standard @EJB
 I actually started by using the @EJB annotation, but it didn't work. What Seam code processes the annotation to inject the lookup value?@EJB(name = "ejb/AddressService") private AddressService addressService; 
 I have tried just about every combination of name, mappedName, etc with no positive result. Seam doesn't ever complain about a NameNotFoundException -- the first sign of a problem is the NullPointerException when the code executes. From the looks of it, I'm doing everything I should be doing to configure the ejb-ref on my glassfish.
 Just for the heck of it, I just changed the name to something that clearly doesn't exist -- Seam didn't log any sort of exception to that effect. Maybe Seam isn't processing the annotation at all....
- 
        3. Re: Problem injecting EJBspmuir Apr 30, 2007 11:01 AM (in response to nstoddar)Seam doesn't process @EJB, this is the job of the EJB3 implementation. As long as your bean is configured as an EJB3 bean it should work - but I've never used Glassfish, perhaps ask on the Glassfish forum? 
- 
        4. Re: Problem injecting EJBsips May 4, 2007 6:53 PM (in response to nstoddar)It's the job of the EJB container when the EJB annotation is used within EJBs. I think it would be really nice if Seam processed the EJB annotation when it was used within non-EJB POJOs. Otherwise, you're stuck using JNDI to lookup EJBs that are not Seam components. 
 
     
    