This content has been marked as final.
Show 4 replies
-
1. Re: one-time initialization at app startup?
mars1412 Mar 20, 2008 6:07 PM (in response to benmoore) -
2. Re: one-time initialization at app startup?
bogdanminciu.bogdan.minciu.yahoo.com Mar 20, 2008 6:32 PM (in response to benmoore)Or you could add an observer on your startup method like this:
@Observer("org.jboss.seam.postInitialization") public void init() { // your init code here }
-
3. Re: one-time initialization at app startup?
benmoore Mar 20, 2008 7:53 PM (in response to benmoore)The docs on @Startup are scant. No mention is made of which method is called. Is it just the constructor?
-
4. Re: one-time initialization at app startup?
tom_goring Mar 20, 2008 11:28 PM (in response to benmoore)Easy ! here's one I made earlier:
@Name("userApplicationRegister") @Scope(ScopeType.APPLICATION) @Startup public class UserApplicationRegister { @Create public void init() { .. Do stuff here } }