I have a sample HelloWorld EJB3 service that is deployed. From within my .esb archive action class I have a @EJB annotation to inject the HelloWorld service api. When I deploy the esb archive it deploys fine but the injection never happens.
I modified my esb archive to do straight JNDI lookup of the HelloWorld service and it works fine. I wanted to know if this is by design i.e. you cannot use EJB3 anotations from within a esb archive (dosent make sense to be this way though) or if its a bug.
I personally dont know what a esb is. Looks like you are using JBoss-4.2.x which does supports @EJB injection only in EJB plugin layer. See this sticky for more details http://www.jboss.com/index.html?module=bb&op=viewtopic&t=107353