[jboss-user] [JBoss Seam] - Re: Problem injecting EJBs
Use the standard @EJB View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041833#4041833 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041833 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem injecting EJBs
"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 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041868#4041868 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041868 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem injecting EJBs
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? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4041869#4041869 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4041869 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: Problem injecting EJBs
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. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4043373#4043373 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4043373 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user