[jboss-user] [Beginner's Corner] - Re: How to implement the cache in jboss?i want the steps to make cache some file

Wolf-Dieter Fink do-not-reply at jboss.com
Thu Sep 9 07:44:15 EDT 2010


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

"Re: How to implement the cache in jboss?i want the steps to make cache some file"

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

--------------------------------------------------------------
Hi,
'cache some files' sounds like a EJB specification violation.
You should not access from EJB's any file (see  http://www.oracle.com/technetwork/java/javaee/tech/index-jsp-142185.html http://www.oracle.com/technetwork/java/javaee/tech/index-jsp-142185.html)

If you want to read something like a configuration you should implement a MBean to read the file and provide the information.

And remember that use of a cache should only be implemented if you have detected a bottleneck and measured that it will help.
In my experience caches where implemented without effect (e.g. not often used) or negative effect (e.g. performance reduced or nasty sideeffects)
--------------------------------------------------------------

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

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/20100909/87e448a4/attachment.html 


More information about the jboss-user mailing list