[jboss-user] [JBoss Seam] - Problem calling an action method at startup using the Observ
javichi_fer
do-not-reply at jboss.com
Wed Nov 7 13:22:44 EST 2007
Hi,
Im trying to call an action method at startup using the Observer Annotation. The code is:
@Stateless
| @Name("initializator")
| public class InitiatorBean implements InitiatorLocal {
|
| @Logger
| private Log log;
|
| @Observer("org.jboss.seam.postInitialization")
| public void initialize(){
|
| log.info("INITIALIZATION DONE");
| System.out.println("INIT---------------------------------------------------------");
|
|
| }
|
| }
|
|
And its interface is:
|
| @Local
| public interface InitiatorLocal {
|
| void initialize();
|
| }
|
|
|
However I see nothing in the output neither in the log. Can someone help me?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102649#4102649
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102649
More information about the jboss-user
mailing list