This content has been marked as final.
Show 2 replies
-
1. Re: Get some data when start server
gonorrhea Jun 8, 2009 6:31 AM (in response to larryli)Use @Startup with application or session-scoped component and @Create.
see Seam ref doc for more info.
-
2. Re: Get some data when start server
larryli Jun 8, 2009 8:35 AM (in response to larryli)Thanks for your answer.
@Startup @Create. is create a Component instance.I can't do it in my listener class.
I had find some useful information for my problem。@Name("dbCache") public class DbCache { @Observer("org.jboss.seam.postInitialization") public void cache() { 。。。。。。 } }
When Seam initialized,the method cache() will be call.