Ah yeah, well spotted pete.
The name of the injected field has to match the declaration in @Name
Change the code to:
| @Stateful
| @Name("itemsCache")
| public class ItemsCacheBean implements ItemsCache, Serializable {
| ...
| @Stateful
| @Name("itemsmanager")
| public class ItemsManagerBean implements ItemsManager, Serializable {
|
| @In(create=true) ItemsCache itemsCache;
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032769#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...