Inject « JBoss « Java Enterprise Q&A





1. Can I inject a SessionBean into a JEE AroundInvoke-Interceptor?    stackoverflow.com

I have an EAR with modules:

  • foo-api.jar
  • foo-impl.jar
  • interceptor.jar
In foo-api there is:
@Local
FooService // (interface of a local stateless session bean)
In foo-impl there is:
@Stateless
FooServiceImpl implements FooService //(implementation of the foo service)
In interceptor.jar I want
public class ...