[jboss-user] [JBoss Seam] - Re: Application Startup Actions
rlhr
do-not-reply at jboss.com
Thu Nov 9 01:56:26 EST 2006
Actually I do.
I think the previous code is not the one I intended to copy. Here is what I use:
| @Scope(ScopeType.APPLICATION)
| @Intercept(InterceptionType.NEVER)
| @Startup(depends = {"pojoCache"})
| @Name("resourcesManager")
| public class ResourcesManager {
|
| private static final Log log = LogFactory.getLog(ResourcesManager.class);
|
| private transient PojoCache pojoCache = org.jboss.seam.core.PojoCache.instance();
|
| private EntityManager entityManager;
|
| @Create
| public void startup() throws Exception {
| ...
| }
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984414#3984414
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984414
More information about the jboss-user
mailing list