[jboss-user] [JBoss Seam] - Re: Initialization code
Sammy8306
do-not-reply at jboss.com
Mon Apr 23 14:43:35 EDT 2007
I solved my problem, kind of obvious now I know Seam a bit better:
1) created an application scope component that does the DB initialization in an @Create component (do not use @Startup for this component)
2) Inject this into the first component (using @In(create=true) that gets called in the application - the application scope ensures that the component only is created once... right?
Looks like its working anyway. Thanks all!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039976#4039976
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039976
More information about the jboss-user
mailing list