Replying to myself:

Stupid me. I forgot to declare the Interceptor in ejb-jar.xml.

I think this may be a common mistake. I think it would be helpful to add a 
comment in the sources of the examples to make it more obvious that an 
interceptor has to be declared on EJBs. (Or use the @Interceptor-Annotation).

BTW: What about "short-term" injection on a stateless session bean?
The documentation mentions:

anonymous wrote : In all dependency injection implementations that
  | we have seen, injection occurs when the component is constructed, and the 
reference does not subsequently
  | change for the lifetime of the component instance. For stateless 
components, this is reasonable. From the point
  | of view of a client, all instances of a particular stateless component are 
interchangeable.

This sounds a bit like injecting into a stateless session bean is an uncommon 
design pattern. I find it rather to have tie jsf components to a temporary seam 
component to hold the values and then inject this into a stateless action bean. 
It works while testing as a single user.

Is this likely to cause problems in a multi user enviroment?

Regards

Felix

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949871#3949871

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949871


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to