[jboss-user] [JBoss Seam] - Question regarding application scoped persistence context
do-not-reply at jboss.com
Wed Feb 7 10:32:39 EST 2007
I would like to know how "expensive" an extended application scoped persistence context is.
I.e. I have a menu consisting out of 1000+ elements that I need for every request. Therefore I would like to cache it - naturally in the application scope.
Now, instead of reading the whole menu on server startup, i thought about using an extended persistence context so already loaded stuff is reused and new stuff gets loaded from the DB (less work than manually loading the whole menu data in some structure).
Is this bad practice or a good idea ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012483#4012483
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012483
More information about the jboss-user