[jboss-user] [Beginner's Corner] - Re: Caching objects

Wolf-Dieter Fink do-not-reply at jboss.com
Fri Dec 23 15:16:52 EST 2011


Wolf-Dieter Fink [http://community.jboss.org/people/wdfink] created the discussion

"Re: Caching objects"

To view the discussion, visit: http://community.jboss.org/message/643087#643087

--------------------------------------------------------------
Hi,

with EJB3.1 I would use a SingletonStatelessSessionBean with a @Startup annotation [1] to cache the parsed XML.
The XML should be placed in a DB as CLOB or VARCHAR, this will be also better if you cluster the application.
Refreshing might be done by calling the SLSB or you store a checksum/version/date with the XML and let the SLSB check this by using @Schedule


[1]  http://java.sun.com/developer/technicalArticles/JavaEE/JavaEE6Overview_Part3.html http://java.sun.com/developer/technicalArticles/JavaEE/JavaEE6Overview_Part3.html
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/643087#643087]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20111223/e6720d45/attachment.html 


More information about the jboss-user mailing list