[jboss-user] [JBoss Seam] - @Startup and user session

mnrz do-not-reply at jboss.com
Sun Aug 26 03:05:32 EDT 2007


Hi

I have a Stateful session scoped component namely "userSettings". I want when user logged in its build method (annotated with @Create) being invoked. 

first I marked it with @Startup but when the pages are loading this component will load as well but at that time, there is no user logged in, so this throws an exception and after the user enters his username and password this component won't initialize for his session

how can I make a component to be loaded just when a user is signing in? @Startup will load for any session even if no user signed in.



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

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



More information about the jboss-user mailing list