[jboss-user] [JBoss Seam] - loosing seam initialization (in particular injection) when u

cyberanto do-not-reply at jboss.com
Tue Feb 5 17:29:22 EST 2008

Env: Seam2.0.1.CR1/JBoss4.2.0/JBoss Development Studio/Windows XP

I am having a problem with Injection failing to work for components which are programmatically added to the context, e.g. 

in the Action Class:

Contexts.getSessionContext().set("catalogModel", newCatalog);

the ModelClass:

public class CatalogModel {

     @Logger private Log log;
     private SkuDAO skuDao;


log and skuDao are null; Of course, the class has been created using new CatalogModel() ... I have tried to obtain the Objects by Context.get() and Components.instance(), to no avail. Had to new them into existence.

catalogModel and skuDao show up as Seam Components in the server log during startup and e.g. the correct catalogModel is available to the web application. (the object does get set into the Context).

Any hints, suggestions? 

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

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

More information about the jboss-user mailing list