I have
in my .xhtml
file and click the button to invoke the logSomething method, so it is created
by Seam.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032400#4032400
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=
And how do you create an instance of this class?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032368#4032368
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032368
___
jboss-
Not in the constructor. Here is my class:
|
| package datassist.gop.action;
|
| import datassist.gop.domain.Istek;
| import java.util.ArrayList;
| import java.util.List;
| import javax.ejb.Remove;
| import javax.ejb.Stateful;
| import javax.persistence.EntityManager;
| import
Good point, Seam does not do any kind of injection until the object is fully
constructed.
However, if you declare a @Logger field static, it will be init'd even in the
constructor ;-)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032208#4032208
Reply to th
always null, or just in the constructor?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032194#4032194
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032194
___
jboss-user mai
Do you have this annotation in a Seam component, ie. a class with an @Name?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032133#4032133
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032133
___
Nope, nothing noteworthy, no Exceptions.
If I remove log4j.xml I naturally get
log4j:WARN No appenders could be found for logger (org.hibernate.ejb.Version).
log4j:WARN Please initialize the log4j system properly.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic
Are there any errors in the application server logs?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4032097#4032097
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4032097
___
jb