cache 2 « Development « Spring Q&A





1. remove one object from cache using namespace    forum.springsource.org

Hi! I am using ehcache namsespace for loading and flushing objects form cache. But I dont know how to remove one object from ...

2. How to enable L2 cache with JBoss TreecacheProvider?    forum.springsource.org

Jul 12th, 2006, 09:51 AM #1 Sab View Profile View Forum Posts Private Message Junior Member Join Date Jun 2006 Posts 5 How to enable L2 cache with JBoss TreecacheProvider? Hi ...

3. XML Parsing and Caching    forum.springsource.org

HI, Please let me know if there is any API exposed by Spring to parse custom xml files (not bean definitions) and also cache the xml time based. This is essentially ...

4. Cache-safe/Not Cache-safe?    forum.springsource.org

Sorry for the stupid question, but I see these terms in the logs in reference to beans when they are initialized and I was wondering exactly what they mean. What would ...

5. Disable caching    forum.springsource.org

Aug 2nd, 2006, 11:01 AM #1 nkm View Profile View Forum Posts Private Message Junior Member Join Date Jul 2006 Posts 9 Disable caching I am using Hibernate for the data ...

6. Caching - problem with method arguments of type 'Date'    forum.springsource.org

Caching - problem with method arguments of type 'Date' I have a problem with the declarative caching in spring modules (using 0.5, spring 1.2.7 on a java 1.4 environment) - HashCodeCacheKeyGenerator ...

7. Caching in spring    forum.springsource.org

8. Caching in spring    forum.springsource.org

Hi, Though I haven't used OSCache but am familiar with similar concept using EHCache. In case of OSCache, you should be able to use GeneralCacheAdministrator class for cache operations including clearing ...

9. Caching: MethodMap or NameMatch Interceptors    forum.springsource.org

Caching: MethodMap or NameMatch Interceptors Im a bit confused as to when is appropriate to use one or the other of these interceptors. In the spring modules documentation where it is ...





10. Setting cache time    forum.springsource.org

i used oscache with spring and what ever time i give , the object gets cached only for 1 or 2 mins maximum... som help me plssss

11. What happened to LRU cache from Wanghy Cache?    forum.springsource.org

I've been looking to do declarative caching with Spring modules but the other cache strategies seem a little heavy for what I want to do. In looking for a simple LRU ...

12. Caching Methods    forum.springsource.org

Hello. In our application there are some "static" (configuration) data that comes from database through the Spring JDBC APIs. I would like to have this data refreshed every x hours automatically. ...

13. Caching Dropdowns    forum.springsource.org

Caching Dropdowns Hi ppl, My webapp (a school mgmt system ) has the following stack webwork-mvc + spring IOC + Spring ORM + Hibernate 3 + MySQL5 There are some dropdowns ...

14. Caching methods for an specific amount of time    forum.springsource.org

Caching methods for an specific amount of time Hello. In our system we have a DAO Layer (some interfaces and their implementations) with some methods wich results rarely change. So, for ...

15. Integrating Jboss Cache with Spring    forum.springsource.org

Integrating Jboss Cache with Spring Hi, We use Spring with Kodo for our application. Now we have a Clustering requirement. We dont have any web client, we have C# client. So ...

16. Caching and CacheKeyGenerator    forum.springsource.org

Could someone point me in the right direction, documentation, as to how to plugin my own CacheKeyGenerator into spring module cache(tangosol), using declrative caching ? It seems the by default the ...





17. Declarative Caching problem    forum.springsource.org

Oct 6th, 2006, 05:54 PM #1 manohar View Profile View Forum Posts Private Message Junior Member Join Date Oct 2006 Posts 2 Declarative Caching problem Hi, One of the methods I'm ...

18. Running a junit test for Cache module fails - forkmode not supported by junit    forum.springsource.org

Running a junit test for Cache module fails - forkmode not supported by junit Hi, just trying to run a unit test that is part of the cache module. I tried: ...

19. Springmodules Cache: Element uses Closeable    forum.springsource.org

Hi, I'm not sure which jdk version the spring modules are targeting but seeing that spring tragets jdk 1.3, 1.4 and 1.5 it might be worth mentioning that org.springmodules.cache.impl.Element refers to ...

20. Back button and browser cache    forum.springsource.org

Back button and browser cache I got some problem with Back button in my search page. Here is the environment: a main page (M) where there is a link to bring ...

21. spring-modules-cache dependencies    forum.springsource.org

spring-modules-cache dependencies After I included spring-modules-cache dependency in my project's pom, org.springmodules spring-modules-cache 0.6 maven is unable to resolve following dependencies: 1) gigaspaces:gigaspaces-ce:jar:5.1-1603-000 2) jini:webster:jar:20060125 3) jboss:jboss-jmx:jar:4.0.3 4) xpp3:xpp3_min:jar:1.1.3.4.I ...

22. commons validator -- caching    forum.springsource.org

23. Incompatibility between Spring Modules Cache 0.6 and Spring 2.0 final?    forum.springsource.org

Incompatibility between Spring Modules Cache 0.6 and Spring 2.0 final? Hi guys, I have been using Spring Modules Cache 0.5 with Spring 2.0 RC1 since a few months and I'm now ...

24. Can't cache result of inner method call    forum.springsource.org

Can't cache result of inner method call I have a really simple case in which I want to cache the result of a inner method call but can't get this to ...

25. Caching: what's wrong?    forum.springsource.org

Caching: what's wrong? I took the examples from this thread but I just can't get it working. What am I doing wrong? Code: XmlBeanFactory factory = new XmlBeanFactory( new FileSystemResource("declarative-beans1.xml")); MathLibrary ...

26. Very strange error - Spring caching classes?    forum.springsource.org

Very strange error - Spring caching classes? Hello, I have stumbled upon a very strange error. I am using Spring 2.0.1 and the hibernate3 binary that is bundled with it. I ...

27. caching Problem    forum.springsource.org

caching Problem HI all, In my project I have common classes called order.java and orderline.java(in a cached folder) that fetch results for 3 reports, there is a particular method in order.java ...

28. class org.springmodules.cache.config.tangosol.CoherenceN amespaceHandler    forum.springsource.org

I am using 0.7 (get from maven2 repo) and unable to see this class? but the handler still registers it? if it is removed, the handler might need to be fixed ...

29. Spring-modules cache compatible with Spring 1.2.8?    forum.springsource.org

Hello all... Is the caching module (v0.7) compatible with Spring 1.2.8? I have some issues in my app which are leading me to think that it is not. Anybody knows for ...

30. caching spring resource    forum.springsource.org

caching spring resource Hi All I have a customer requirement to create mass HTML email generation application. I have successfully used Spring email to help create and send email for this ...

31. Questions on 2nd level cache    forum.springsource.org

Jan 19th, 2007, 10:52 AM #1 sonar-ua View Profile View Forum Posts Private Message Junior Member Join Date Jan 2007 Posts 28 Questions on 2nd level cache Greetings, I'm trying to ...

32. Caching and Timers    forum.springsource.org

Hi, I have a database table that changes on rare occasions. I would like to have a Quarts job that loads this relatively small table into memory and refereshes it. I ...

33. cache 0.7 and spring 1.2.8    forum.springsource.org

Using Spring 1.2.8 and Spring Modules 0.7, I've found that Cache Module needs Spring 2.0! java.lang.NoSuchMethodError: org.springframework.util.ReflectionUtils.findMetho d(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/ClassLjava/lang/reflect/Method; at org.springmodules.cache.util.Reflections.reflectio nHashCode(Reflections.java:97) What version of the Cache Module should I use with ...

34. Spring Modules Cache JDK Support    forum.springsource.org

Using EHCache as the caching implementation I ran some tests of the latest Spring Modules Caching under JDK 1.4 which gave perfect results. However, when implementing it within the project I ...

35. Rules and Caching...    forum.springsource.org

Rules and Caching... What is the best way to architect a solution based on these requirements: We need to process 10-20 events per second - delivered via JMS infrastructure to application ...

36. Support for JBoss Cache    forum.springsource.org

I guess the documentation author overlooked this feature. Please raise a quick issue on JIRA to get this fixed (or actually to get a good description on each of the cache ...

37. TransactionAttributeSource Cache Problem (infinite loop)    forum.springsource.org

TransactionAttributeSource Cache Problem (infinite loop) Hi, I've run into a serious problem using Spring 2.0.2 and AnnotationTransactionAttributeSource. I have serveral threads with a stacktrace like this: Thread [http-8080-Processor25] (Suspended) HashMap.get(Object) line: ...

38. view resolver clearing cache    forum.springsource.org

I'm using VelocityViewResolver and when updating a template, I would like to call the clearCache method of AbstractCachingViewResolver. I would like to call this through a query string parameter i.e. /page.html?cache=clear ...

39. cache problem    forum.springsource.org

cache problem Hi, I don't know whether it's right or wrong to post this question here? but I don't know from where could i get help. I am using iBatis for ...

40. Static Factory Method and a Cache    forum.springsource.org

Static Factory Method and a Cache I have a class that represents an office. This class has a static factory method that, given an office name, returns and instance of the ...

41. appContext caching ?    forum.springsource.org

42. DataBinder cache old value    forum.springsource.org

Hi, My project is using Struts + Spring and I use Spring's DataBinder for form validation. However, each time when a user type an invalid data, the binder validate correctly, but ...

44. [Cache/EHCache]Problems flushing multiple caches    forum.springsource.org

[Cache/EHCache]Problems flushing multiple caches Hi, I have problem with flushing multiple caches using a MetaDataFlushingInterceptor. The problem I have is that a list of names of caches to flush is always ...

45. Flush whole cache    forum.springsource.org

Flush whole cache I'm writing JUnit tests and I would like to flush the whole cache at the end of each test method (tearDown()). Is there a way to do this ...

46. Method level caching    forum.springsource.org

Method level caching Sorry to start another thread on this topic.I have read a few of already existing threads and it does not seem to help. Here are the entries in ...

47. Caching with Spring + Spring-modules-cache + oscache    forum.springsource.org

Caching with Spring + Spring-modules-cache + oscache I am using Spring for business layer. I would like to Cache the data in business layer. So i tried eager reading in "init" ...

48. Best Caching Strategy    forum.springsource.org

Sorry for starting new thread. 1. I am planning to cache static (not modified frequently) data for my application. Existing threads suggests that hibernate caching will be the best option. For ...

49. Caused by: org.jboss.cache.CacheException: DataNode --- version Ver=3 is newer than    forum.springsource.org

Caused by: org.jboss.cache.CacheException: DataNode --- version Ver=3 is newer than java.lang.RuntimeException: at org.jboss.cache.interceptors.TxInterceptor$LocalSy nchronizationHandler.beforeCompletion(TxIntercepto r.java:1091) at org.jboss.cache.interceptors.OrderedSynchronizatio nHandler.beforeCompletion(OrderedSynchronizationHa ndler.java:75) at org.jboss.cache.transaction.DummyTransaction.notif yBeforeCompletion(DummyTransaction.java:247) at org.jboss.cache.transaction.DummyTransaction.commi t(DummyTransaction.java:54) at org.jboss.cache.transaction.DummyBaseTransactionMa nager.commit(DummyBaseTransactionManager.java:61) at org.jboss.cache.interceptors.TxInterceptor.handleN onTxMethod(TxInterceptor.java:349) ...

50. Caching Problem for method with String argument    forum.springsource.org

Caching Problem for method with String argument I am using Spring Modules with ehcache, to cache the results of a call to a method taking a single String argument. However, it ...

51. might be cache problem ?    forum.springsource.org

might be cache problem ? My Issue is simple and compilcated. when l try to login with correct username and password it loged in my successfully. but once i login with ...

52. How to cache the web pages using EHCache    forum.springsource.org

Dear all, i need to know how to cache the dynamic web pages using EHCache. please send me with details. i am using spring framework. how to implement EHCache in spring ...

53. Decision to Choose Caching Strategy    forum.springsource.org

Decision to Choose Caching Strategy Looking to start with a Caching Strategy for caching theResultSet Data. My current Architecture shows : Spring-EJB + Spring Tx+ Spring DAO+ Spring-JDBC .. First idea ...

54. How to test the data in cache    forum.springsource.org

Hi, I am using Declarative Caching mechanism with Spring. But I donot know how to check for the data whether it is stored in the cache. Please show me a way ...

55. Unable to know Caching is happening or not with Spring + EHCache    forum.springsource.org

Data not Cached with Spring + EHCache Hi, Could anybody tell how to cache data using the spring configuration. Here is my Ehcache.xml file

56. declarative caching - coherence    forum.springsource.org

declarative caching - coherence New to spring modules; just got v0.8. I tried following Alex Ruiz's article (http://dev2dev.bea.com/pub/a/2006/05...e-caching.html). I'm trying to configure my applicationContext.xml with the following: Code: ...

57. Error: spring-modules-cache and ehcache and Tomcat    forum.springsource.org

Error: spring-modules-cache and ehcache and Tomcat Hi, I try to run a webapp with spring-modules-cache and EHCache. I configure the caching via elements. When I run a test the cache ...

58. Clustered Cache using EhCache    forum.springsource.org

Clustered Cache using EhCache Hi, We are having an application level Cluster in the production and also development Environment. We are using the EhCache for caching the Data and then the ...

59. Declarative caching    forum.springsource.org

I have a working model of of the Declarative caching using Spring. My problem: The application needs to flush and reload almost all of the cache on an event. The time ...

60. How mature is spring's declarative caching?    forum.springsource.org

Well, I took a little time to evaluate declarative caching in spring for use in future projects. I must say I really like its unobtrusive aspect and simplicity, as well as ...

61. How to not caching null values?    forum.springsource.org

Hi. Im using caching for manager services. But I want that for a manager method dont cache the return value if it is null. Is any clear way to do that? ...

62. Basic Spring Ehcache declarative caching question/problem combo    forum.springsource.org

Basic Spring Ehcache declarative caching question/problem combo I've been tryin to follow the springmodules cache example by piecing together the code samples, and I came up with this simple configuration: Code: ...

63. Form validation based on GET/POST variable, cache-problem?    forum.springsource.org

Form validation based on GET/POST variable, cache-problem? Hi! I'm using forms with an hidden input to pass an index to the form validation controller. The index is used to select which ...

64. Caching only required getter methods??    forum.springsource.org

Caching only required getter methods?? Hi, I'm using Declarative Cahcing Using Spring and EHCache. Requirements is to cache the particular private and public methods of a class. But the following technique ...

65. Can I Cache only Required Methods?    forum.springsource.org

Can I Cache only Required Methods? Hi, I'm using Declarative Cahcing Using Spring and EHCache. Requirements is to cache the particular private and public methods of a class. But the following ...

66. AsbtractWizardFormController and Caching    forum.springsource.org

AsbtractWizardFormController and Caching I'm at wits end with caching Issues and need some advice on solving them. I've had this problem before, whereby user A would load a page and user ...

67. Caching private method    forum.springsource.org

Hi, I have a bean like this: public class Class1 { private Class2 methodA(String abc) { //hello } public Class2 methodA() { methodA("hello"); } } Now, I need to cache only ...

68. errors in caching docs/source    forum.springsource.org

errors in caching docs/source Hi - I think I have found some errors in the initial use of caching - some are bugs in the docs and some /might/ be coding. ...

69. Why is explicit caching needed?    forum.springsource.org

Acegi documentation says "Acegi Security integrates with Spring's EHCACHE factory. This flexibility means your database (or other authentication repository) is not repeatedly queried for authentication information." The authentication object is anyway ...

70. Declarative Caching    forum.springsource.org

Declarative Caching Has anyone successfully implemented Declarative Caching with Spring Modules? I've checked out a few of the threads here regarding DC, but they seem incomplete (or not clearly explained). I ...

71. Caching and Spring 2.5    forum.springsource.org

Caching and Spring 2.5 I'm trying (again) to work with the caching module. I'm trying to add it to a Spring 2.5 application build with Maven. The caching module's pom depends ...

72. Application Initialization and lookup data caching    forum.springsource.org

Application Initialization and lookup data caching I need help to implement the following: I have few lookup tables that I need to cache during application initialization in HashMaps, then use the ...

73. aspectOf breaks context cache isolation in unit tests    forum.springsource.org

aspectOf breaks context cache isolation in unit tests using Spring 2.5 UnitTests all combinations of context locations are stored isolated in a context cache. @DirtiesContext allows to invalidate the own cached ...

74. Functional Example of Declarative Caching    forum.springsource.org

75. Caching the remote interface within SimpleRemoteStatelessSessionProxyFactoryBean    forum.springsource.org

From stepping through the code, it looks like by default the SimpleRemoteStatelessSessionProxyFactoryBean caches the home interface but does not cache the remote interface. Is there a reason we cannot cache the ...

76. caching of pages    forum.springsource.org

77. WebSphere DistributedMap declarative caching?    forum.springsource.org

WebSphere DistributedMap declarative caching? I'm trying to figure out the best way to enable declarative caching in Spring, but to use the WebSphere provided DistributedMap. I'm using the DistributedMap as a ...

78. RedirectView cache problem    forum.springsource.org

Hello everybody, I am using two controllers one is an overview of objects and one controller to delete one object. When i click delete on the overview page i go to ...

79. WebContentGenerator and caching    forum.springsource.org

WebContentGenerator and caching Hi I have a few controllers which inherit different types of controllers - AbstractCommandController and Controller. I want to implement caching so that if a user clicks the ...

80. Yet another caching question    forum.springsource.org

Hi, I'm having a problem with my webapp (Spring+Hibernate). In a nutshell, when I update a database table outside the webapp, I don't see the updated data when I refresh the ...

81. Data Caching    forum.springsource.org

82. Spring Modules and JCS caching: baaaad performance    forum.springsource.org

Apr 10th, 2008, 07:03 AM #1 forloRn_ View Profile View Forum Posts Private Message Junior Member Join Date Apr 2008 Posts 15 Spring Modules and JCS caching: baaaad performance Hi, So ...

83. Adding new cache provider to spring modules    forum.springsource.org

Hi, I want to add new cache provider to spring-modules. What are the steps should I do to get it in? I have it added to the source and works, but ...

84. Overriding the Spring Container's caching behavior    forum.springsource.org

Overriding the Spring Container's caching behavior Hello guys, I am a Spring novice, who has recently started using Spring for a project. I was reading up on Spring bean factories some ...

85. Caching, with memcached or ehcache?    forum.springsource.org

Caching, with memcached or ehcache? Hi, what do you think which cache will be better, memcached or ehcache. ehcache is "inside" your services, so you may have GC Problems memcached is ...

86. Spring XT- Ajax - Need to set response.setHeader("Cache-Control", "no-cache");    forum.springsource.org

Hi everybody, I need to set in my Ajax response response.setHeader("Cache-Control", "no-cache"); so as to avoid the issue with internet explorer caching. Please let me know where can i set this ...

87. How to disable cache in spring-servlet.xml |Spring-XT    forum.springsource.org

Hi everybody, I am using Spring-XT ajax ,I need to set in my Ajax response response.setHeader("Cache-Control", "no-cache"); so as to avoid the issue with internet explorer caching. Please let me know ...

88. How costly is disabling view caching?    forum.springsource.org

How costly is disabling view caching? I'm working on developing a multi-tenant view resolver and I'm running into a problem with Spring's view caching. I'm extending the InternalResourceViewResolver to look for ...

89. Caching of local XML files with JSTL c:import    forum.springsource.org

Caching of local XML files with JSTL c:import Hello, I'm using JTSL c:import to load XML files into a view served by an AbstractController subclass. The controller changes and saves the ...

90. auto-config registers any cache?    forum.springsource.org

when i'm running spring security with auto-config is there any cache for authentication registered? somehow when i activate once-per-request="true" it does not authenticate every request. The AbstractSecurityInterceptor just authenticates at the ...

91. second level cache problem    forum.springsource.org

Jul 28th, 2008, 06:53 AM #1 cristiv View Profile View Forum Posts Private Message Junior Member Join Date Jul 2008 Posts 8 second level cache problem I'm tring to set up ...

92. 0.9 cache maven pom.xml    forum.springsource.org

Hi all, I have created a maven pom.xml for spring modules cache 0.9 based on the 0.8 pom with the versions updated from ivy. This also (hopefully) has the correct optional ...

93. Getting 2 cache hits instead of one? (ehCache)    forum.springsource.org

Getting 2 cache hits instead of one? (ehCache) Why I get 2 cache hits with the following code? Shouldn't it be one? I'm using SingletonEhCacheProvider, because if I use EhCacheProvider I ...

94. Jboss Cache    forum.springsource.org

Hi, I am looking for some suggestions here. I have a situation where I need to load all the dropdowns when a user logs in. These dropdowns are common for all ...

95. getting NonUniqObjectException when using cache    forum.springsource.org

getting NonUniqObjectException when using cache hi.. i'm trying to cache (with my own cache implementation which uses EHCache 1.1 behind the scenes, don't ask why) persistent objects from hibernate. for some ...

96. Caching: OSCache and misc.    forum.springsource.org

Caching: OSCache and misc. We would like to implement server-side Web page caching. We have looked at OSCaches CacheFilter. It works as expected for plain servlets, but we have not managed ...

97. Spring IDE appears to cache configuration    forum.springsource.org

Spring IDE appears to cache configuration In my configuration file I has getting an error because The class type that was selected did not have one of the properties that were ...

98. Caching mystery    forum.springsource.org

99. Spring-Modules-Cache Usage    forum.springsource.org

Hi all, I'm trying to use BeanNameAutoProxyCreator declarative caching services with Spring 2.5 and OSCache. I don't have a clue what I'm supposed to add to my application's applicationContext.xml. Where can ...

100. Velocimacro caching    forum.springsource.org

Velocimacro caching Hi folks, I've been searching high and low and I thought I'd give this board a try. I want to load my velocity macros through something besides the default ...