[jboss-user] [JBoss Seam] - Application Startup Actions
iradix
do-not-reply at jboss.com
Wed Nov 8 11:38:11 EST 2006
Is anyone using seam components to perform actions on the database when their application starts? With Seam 1.0 I had a few SFSB that were application scoped and used the @Startup and @Create methods to check if certain necessary data was available and create it if it wasn't. These are actions like determining if there is at least one administrative account and creating a default one if not, or defining static categories. These stopped working in 1.1 and rather than figuring out why, I'm looking for a better way to perform these types of actions. My two chief problems were/are:
1) These don't need to be SFSB because they only exists to fire off their create methods, yet I can't do that on application startup without scoping them to the application, and I can't place an SLSB in application scope.
2) I have no conversation available when the application starts up and this wreaks havoc with my DAOs which expect to be able to inject an SMPC.
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984225#3984225
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984225
More information about the jboss-user
mailing list