I have an EAR with modules:
- Foo-api.jar
- Foo-impl.jar
- interceptor.jar
In foo-api there is:
@Local
FooService
In foo-impl there is:
@Stateless
FooServiceImpl implements FooService
In interceptor.jar i want
public class BazInterceptor {
@EJB
private FooService foo;
@AroundInvoke
public Object intercept( final InvocationContext i) throws Exception {
return i.proceed();
}
The question arises:
Will a Java EE 5 interceptor server (e.g. JBoss 5) be deployed? If not, what is a good strategy for accessing a bean session?
Think:
- Deployment / placement conditions
source
share