[jboss-user] [JBoss Seam] - Re: How to use @Startup annotation?

quilleashm do-not-reply at jboss.com
Tue Jun 5 10:29:14 EDT 2007


You cannot use a session scoped component from within the @Create method of an application scoped component that has @Startup.  If you think about it your create method is getting run as soon as the web application starts up.  At  this point there will never be an active session scope.  The session scope is only available during a client/JSF request.

You need to have a look at your components and what purpose they have.  Something is definately wrong with your scoping or component interaction.

Cheers.

Mike.



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

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



More information about the jboss-user mailing list