This content has been marked as final.
Show 1 reply
-
1. Re: ejb3's not injected: how to debug? (switching from ejb 2.1 to 3)
jaikiran Nov 21, 2016 12:29 AM (in response to milspec)What does your application packaging look like? Do you have a ejb-jar.xml (it's not mandatory)? If yes, then what does the XSD declaration for it look like? What version of EJB does it say the application is?
milspec wrote:
Code: Client
/**
* Used to inject Post Service
*/
private static class PostServiceHelper
{
@EJB (name="PostService")
PostServiceEJB fPostServiceEJB;
{
return fPostServiceEJB;
}
}
Injection is only supported in container managed component classes. This class doesn't look like one, so it won't be supported here.