-
1. Re: How to implement the cache in jboss?i want the steps to make cache some file
wdfink Sep 8, 2010 2:21 AM (in response to swaroopp)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)
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)
-
2. Re: How to implement the cache in jboss?i want the steps to make cache some file
jaikiran Sep 8, 2010 2:23 AM (in response to swaroopp)That's a very unclear requirement. What exactly do you mean by "JBoss"? Are you referring to JBoss Application Server or JBoss Cache (now known as Infinispan http://jboss.org/infinispan)?
-
3. Re: How to implement the cache in jboss?i want the steps to make cache some file
swaroopp Sep 8, 2010 5:20 AM (in response to jaikiran)This is regarding the cache in jboss Application Server...
-
4. Re: How to implement the cache in jboss?i want the steps to make cache some file
wdfink Sep 8, 2010 5:35 AM (in response to swaroopp)But the question is still what are the requirements?
What you want to cache? Why you think that a cache should be implemented, performance?
-
5. Re: How to implement the cache in jboss?i want the steps to make cache some file
swaroopp Sep 8, 2010 6:41 AM (in response to wdfink)How a jboss cache can be used in standalone,non clustered environments to cache frequently accessed data in memory...
-
6. Re: How to implement the cache in jboss?i want the steps to make cache some file
swaroopp Sep 8, 2010 11:13 AM (in response to jaikiran)Hi
I want to implement the jboss cache in a standalone application,non clustered environments....
i am caching some xml file...
i put that xml file in some jar file and i put that jar file in classpath
but still it is showing the NullPointerException
-
7. Re: How to implement the cache in jboss?i want the steps to make cache some file
swaroopp Sep 9, 2010 10:52 AM (in response to jaikiran)I am referring to Jboss Cache...
How it makes cache of objects?