Hi,
I create a SeamResourceServlet as described in: http://seamframework.org/Documentation/ReplacingServletsWithSeamResources#H-ServingTheContentAsASeamResource
and in my doWork method I have the following call:
IdentityCustomizadaSadau identity = (IdentityCustomizadaSadau) Component.getInstance("identity", true);
Identity is always null after this call. This was a new modification that I do to this method. I can access other Seam managed components in this method, like the entityManager. What can be wrong?
Thanks,
Carlos.
I changed the line above by:
IdentityCustomizadaSadau identity = (IdentityCustomizadaSadau) Component.getInstance(IdentityCustomizadaSadau.class);
and it worked. Someone can explaim me why?
Best regards,
Carlos.