[jboss-user] [JBoss Seam] - Re: Question on Injecting
waynebagguley
do-not-reply at jboss.com
Thu Mar 29 09:41:01 EDT 2007
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#4032769
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032769
More information about the jboss-user
mailing list