This content has been marked as final.
Show 5 replies
-
1. Re: Jboss Seam Context Lookup Erros
swd847 Nov 3, 2009 1:46 AM (in response to tiagoff)Try:
@Name("viewService") ViewService { @In(value="categorySessionBean",create=true) private ICategorySessionBean categorySessionBean; }
Don't worry about the COMPONENT_SUFFIX stuff, it stores information about the component, not an instance of the component.
-
2. Re: Jboss Seam Context Lookup Erros
tiagoff Nov 3, 2009 7:01 PM (in response to tiagoff)Thanks Stuart, works !
-
3. Re: Jboss Seam Context Lookup Erros
cash1981 Nov 3, 2009 7:50 PM (in response to tiagoff)
Stuart Douglas wrote on Nov 03, 2009 01:46:
Try:@Name("viewService") ViewService { @In(value="categorySessionBean",create=true) private ICategorySessionBean categorySessionBean; }
Don't worry about the COMPONENT_SUFFIX stuff, it stores information about the component, not an instance of the component.Hmmmm I thought the correct way of doing it was:
@Name("viewService") ViewService { @In(value="categorySessionBean",create=true) private CategorySessionBean categorySessionBean; }
Meaning, using the interface and not the direct implementation. Guess both will work though...
-
4. Re: Jboss Seam Context Lookup Erros
swd847 Nov 3, 2009 8:39 PM (in response to tiagoff)My example does use the interface, and both ways wont work.
-
5. Re: Jboss Seam Context Lookup Erros
cash1981 Nov 3, 2009 10:09 PM (in response to tiagoff):O sorry Stuart. I must have suffered by temporary blindness