[jboss-user] [JBoss Seam] - Re: Initialization code

baz do-not-reply at jboss.com
Wed Apr 25 02:02:09 EDT 2007


We have a similar problem. We have to initialize a Catalog seam component from database when seam is started.
Our solution:
Catalog is application scoped. Our users must login before they can use the app.
So we put this statement in our authorization bean:
	@In(create = true)
  | 	private Catalog catalog;
  | 
The first login initializes the component.
It is only a workaround and does not work with apps when there is no need to login.
Ciao,
baz

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040430#4040430

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040430



More information about the jboss-user mailing list