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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to