<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-21831</id>
	<title>Nabble - Ehcache</title>
	<updated>2009-10-30T06:17:56Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Ehcache-f21831.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ehcache-f21831.html" />
	<subtitle type="html">&lt;a href=&quot;http://ehcache.sourceforge.net/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Ehcache&lt;/a&gt;&amp;nbsp;is a widely used java distributed cache for general purpose caching, J2EE and light-weight containers.
&lt;br&gt;It features memory and disk stores, replicate by copy and invalidate, listeners, a gzip caching servlet filter and much &lt;a href=&quot;http://ehcache.sourceforge.net/features.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;more&lt;/a&gt;.
&lt;br&gt;&lt;b&gt;Ehcache&lt;/b&gt;&amp;nbsp;is available under an Apache open source license and is actively developed, maintained and supported.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26129941</id>
	<title>Re: Cannot get logging to work ehcache 1.6.2</title>
	<published>2009-10-30T06:17:56Z</published>
	<updated>2009-10-30T06:17:56Z</updated>
	<author>
		<name>cj91</name>
	</author>
	<content type="html">I can't either, and getting it to work in WebSphere is an even bigger nightmare. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;Please vote for this issue and pass the word around. SFL4J fixes all the problems and gives us a performance increase:
&lt;br&gt;&lt;a href=&quot;https://jira.terracotta.org/jira/browse/EHC-310&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://jira.terracotta.org/jira/browse/EHC-310&lt;/a&gt;&lt;br&gt;&lt;br&gt;There's a patch associated with that JIRA that we use to use SLF4J. You could compile your own jar.
&lt;br&gt;&lt;br&gt;&lt;quote author=&quot;Eric Dalquist&quot;&gt;&lt;br&gt;I'm having similar issues. I'm trying to track down configuration problems with distributed caching and while tomcat's JUL logging messages seem to honor my /AppName/WEB-INF/classes/logging.properties ehcache's do not and I'm not getting any logging out of it.
&lt;br&gt;&lt;br&gt;Does anyone have a working example of configuring ehcache logging within a webapp on Tomcat?
&lt;br&gt;&lt;br&gt;-Eric
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;cj91 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Can someone please give me an example of how to turn on fine logging in ehcache?
&lt;br&gt;&lt;br&gt;As a bonus question, if the rest of my project uses slf4j, can someone show me how to turn on logging in ehcache?
&lt;br&gt;&lt;br&gt;I've tried for hours but can't get any logging information. I'm using EHCache in a Web Application. Currently, i'm testing in Tomcat. I edited the server's logging.properties file, but that didn't work. I've tried creating a bean in my Spring configuration that installs the SLF4JBridgeHandler before the EHCache is initialized, and that didn't work either (Although Tomcat's JUL calls were routed successfully).
&lt;br&gt;&lt;br&gt;I've gotten by so far by patching the EHCache source code to SLF4J. Is anyone interested in these patches? JUL logging is slower than the parameterized logging of SLF4J... (could be a way to pick up some 'free' speed).
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;/quote&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cannot-get-logging-to-work-ehcache-1.6.2-tp25164158p26129941.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26122587</id>
	<title>Re: Cannot get logging to work ehcache 1.6.2</title>
	<published>2009-10-29T16:27:35Z</published>
	<updated>2009-10-30T05:56:42Z</updated>
	<author>
		<name>Eric Dalquist</name>
	</author>
	<content type="html">I'm having similar issues. I'm trying to track down configuration problems with distributed caching and while tomcat's JUL logging messages seem to honor my /AppName/WEB-INF/classes/logging.properties ehcache's do not and I'm not getting any logging out of it.
&lt;br&gt;&lt;br&gt;Does anyone have a working example of configuring ehcache logging within a webapp on Tomcat?
&lt;br&gt;&lt;br&gt;-Eric
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;cj91 wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message&quot;&gt;Can someone please give me an example of how to turn on fine logging in ehcache?
&lt;br&gt;&lt;br&gt;As a bonus question, if the rest of my project uses slf4j, can someone show me how to turn on logging in ehcache?
&lt;br&gt;&lt;br&gt;I've tried for hours but can't get any logging information. I'm using EHCache in a Web Application. Currently, i'm testing in Tomcat. I edited the server's logging.properties file, but that didn't work. I've tried creating a bean in my Spring configuration that installs the SLF4JBridgeHandler before the EHCache is initialized, and that didn't work either (Although Tomcat's JUL calls were routed successfully).
&lt;br&gt;&lt;br&gt;I've gotten by so far by patching the EHCache source code to SLF4J. Is anyone interested in these patches? JUL logging is slower than the parameterized logging of SLF4J... (could be a way to pick up some 'free' speed).
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cannot-get-logging-to-work-ehcache-1.6.2-tp25164158p26122587.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25645653</id>
	<title>Re: How to manage the cache by JMX (using Spring &amp; Tomcat)</title>
	<published>2009-09-28T09:00:10Z</published>
	<updated>2009-09-28T09:00:10Z</updated>
	<author>
		<name>Julien D</name>
	</author>
	<content type="html">Try this &lt;a href=&quot;http://onjavahell.blogspot.com/2009/09/monitoring-ehcache-with-jmx-and-spring.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Monitoring ehcache with JMX and Spring&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;Michael Smith wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;I'd like to manage the cache via JMX. I've added this code:
&lt;br&gt;&lt;br&gt;CacheManager manager = new CacheManager();
&lt;br&gt;&amp;nbsp; &amp;nbsp; MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
&lt;br&gt;&amp;nbsp; &amp;nbsp; ManagementService.registerMBeans(manager, mBeanServer, false, false, false, true);
&lt;br&gt;&lt;br&gt;to my class that uses the cache, but I still don't see the cache in my JMX tree. &amp;nbsp;
&lt;br&gt;&lt;br&gt;Is there a way to do it without any programming, just via the Spring configuration? &amp;nbsp;If not, what code do I need to use? &amp;nbsp;
&lt;br&gt;&lt;br&gt;Thanks
&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-manage-the-cache-by-JMX-%28using-Spring---Tomcat%29-tp20484719p25645653.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25267554</id>
	<title>problem clustering with ehcache and glassfish</title>
	<published>2009-09-02T16:46:14Z</published>
	<updated>2009-09-02T16:46:14Z</updated>
	<author>
		<name>tenglish</name>
	</author>
	<content type="html">We are using glassfish and ehcache, and can't get the ehcache nodes to replicate to each other. We've tried clustered and non-clustered glassfish configurations, and have used the example ehcache.xml settings, but cannot get the caches to synchronize. Our current configurartion is taken from the ehcache unit-test docs:
&lt;br&gt;&lt;br&gt;&amp;lt;cacheManagerPeerProviderFactory
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&amp;quot;net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties=&amp;quot;peerDiscovery=automatic,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; multicastGroupAddress=230.0.0.1,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; multicastGroupPort=4446&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;cacheManagerPeerListenerFactory
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&amp;quot;net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties= &amp;quot;port=40002&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;lt;defaultCache
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxElementsInMemory=&amp;quot;10&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eternal=&amp;quot;false&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToIdleSeconds=&amp;quot;100&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToLiveSeconds=&amp;quot;100&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; overflowToDisk=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;cacheEventListenerFactory class=&amp;quot;net.sf.ehcache.distribution.RMICacheReplicatorFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;properties=&amp;quot;replicateAsynchronously=true,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;replicatePuts=true,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;replicateUpdates=true,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;replicateUpdatesViaCopy=true,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;replicateRemovals=true &amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;bootstrapCacheLoaderFactory class=&amp;quot;net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory&amp;quot; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/defaultCache&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;cache name=&amp;quot;com.popcap.soa.datamodel.Score&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxElementsInMemory=&amp;quot;10&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;eternal=&amp;quot;false&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;timeToIdleSeconds=&amp;quot;100&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;timeToLiveSeconds=&amp;quot;100&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;overflowToDisk=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;cacheEventListenerFactory class=&amp;quot;net.sf.ehcache.distribution.RMICacheReplicatorFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;properties=&amp;quot;replicateAsynchronously=true,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; replicatePuts=true,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; replicateUpdates=true,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; replicateUpdatesViaCopy=false,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; replicateRemovals=true,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; asynchronousReplicationIntervalMillis=10&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;bootstrapCacheLoaderFactory class=&amp;quot;net.sf.ehcache.distribution.RMIBootstrapCacheLoaderFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;properties=&amp;quot;bootstrapAsynchronously=false,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maximumChunkSizeBytes=5000000&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/cache&amp;gt;
&lt;br&gt;&lt;br&gt;Using this configuration we can populate the cache on one node, but it does not synchronize. Any help would be appreciated.
&lt;br&gt;&lt;br&gt;Thanks</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/problem-clustering-with-ehcache-and-glassfish-tp25267554p25267554.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25164158</id>
	<title>Cannot get logging to work ehcache 1.6.2</title>
	<published>2009-08-26T17:43:47Z</published>
	<updated>2009-08-28T13:22:51Z</updated>
	<author>
		<name>cj91</name>
	</author>
	<content type="html">Can someone please give me an example of how to turn on fine logging in ehcache?
&lt;br&gt;&lt;br&gt;As a bonus question, if the rest of my project uses slf4j, can someone show me how to turn on logging in ehcache?
&lt;br&gt;&lt;br&gt;I've tried for hours but can't get any logging information. I'm using EHCache in a Web Application. Currently, i'm testing in Tomcat. I edited the server's logging.properties file, but that didn't work. I've tried creating a bean in my Spring configuration that installs the SLF4JBridgeHandler before the EHCache is initialized, and that didn't work either (Although Tomcat's JUL calls were routed successfully).
&lt;br&gt;&lt;br&gt;I've gotten by so far by patching the EHCache source code to SLF4J. Is anyone interested in these patches? JUL logging is slower than the parameterized logging of SLF4J... (could be a way to pick up some 'free' speed).</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cannot-get-logging-to-work-ehcache-1.6.2-tp25164158p25164158.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25008686</id>
	<title>instanceof in JMSCachePeer not working.</title>
	<published>2009-08-17T08:16:01Z</published>
	<updated>2009-08-17T08:16:01Z</updated>
	<author>
		<name>Nimit Grover</name>
	</author>
	<content type="html">Hi
&lt;br&gt;&lt;br&gt;The &amp;quot;instance of&amp;quot; used in the source code of ehcache jms replication provided by ehcahe is not working. 
&lt;br&gt;&lt;br&gt;File Name is JMSCachePeer
&lt;br&gt;&lt;br&gt;private void handleObjectMessage(Message message) throws JMSException, RemoteException {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ObjectMessage objectMessage = (ObjectMessage) message;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Object object = objectMessage.getObject();
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //If a non-cache publisher sends an Element
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (object instanceof Element) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /** some code **/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else if (object instanceof JMSEventMessage) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /** some code **/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } else {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /** some code **/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;Even though the object is of type JMSEventMessage, the control does not go in the second if. rather it goes in the last else.
&lt;br&gt;&lt;br&gt;The object.getClass().getName() and JMSEventMessage.class.getName() both give the same result which is net.sf.ehcache.distribution.jms.JMSEventMessage.
&lt;br&gt;&lt;br&gt;Even then i am getting a classcastexception when i do this:
&lt;br&gt;&lt;br&gt;JMSEventMessage jmsEventMessage = (JMSEventMessage) object;
&lt;br&gt;&lt;br&gt;If anyone has any input then please share.
&lt;br&gt;&lt;br&gt;Thanks in advance..
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Nimit Grover.
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/instanceof-in-JMSCachePeer-not-working.-tp25008686p25008686.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24930984</id>
	<title>Tomcat startup fails with Ehcache</title>
	<published>2009-08-11T23:54:15Z</published>
	<updated>2009-08-11T23:54:15Z</updated>
	<author>
		<name>annuvinayak</name>
	</author>
	<content type="html">Hi All,
&lt;br&gt;&lt;br&gt;I have a web application having tremedous DB interactions (many of them are READ-ONLY). I decided to use secondary level caching for improving performance. 
&lt;br&gt;&lt;br&gt;After configuring Ehcache, when I try to start my Tomcat6 server, I get an Applet popup. I click on Allow for all the popups. The folloing is printed on the tomcat console: 
&lt;br&gt;--&amp;gt;&amp;gt; returning Frame NULL
&lt;br&gt;BaseDialog: owner frame is a java.awt.Frame
&lt;br&gt;&lt;br&gt;After this, the server keeps trying to start for a while and then says &amp;quot;Server startup failed. ..Took longer than 45 seconds to start&amp;quot;
&lt;br&gt;&lt;br&gt;There is no error logged either on the application logs or the tomcat logs. Everything looks to be fine, but the server doesn't start. I have tried googling a lot but no success. Please help!
&lt;br&gt;&lt;br&gt;Following are the configurations I have done for using ehcahe:
&lt;br&gt;&lt;br&gt;1. Added ehcache1.2.jar to Web-inf/lib
&lt;br&gt;2. Added ehcache configuration to hibernate xml file: 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;lt;prop key=&amp;quot;hibernate.cache.use_second_level_cache&amp;quot;&amp;gt;true&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;prop key=&amp;quot;hibernate.cache.provider_class&amp;quot;&amp;gt;org.hibernate.cache.EhCacheProvider&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;prop key=&amp;quot;hibernate.cache.use_query_cache&amp;quot;&amp;gt;true&amp;lt;/prop&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;lt;prop key=&amp;quot;hibernate.cache.provider_configuration_file_resource_path&amp;quot;&amp;gt;/ehcache.xml&amp;lt;/prop&amp;gt;
&lt;br&gt;&lt;br&gt;3. Added ehcache.xml to classpath. 
&lt;br&gt;4. Added @cache annotation to my entity.
&lt;br&gt;&lt;br&gt;Any help would be highly appreciated!</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Tomcat-startup-fails-with-Ehcache-tp24930984p24930984.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24301834</id>
	<title>Re: Problems initialising ehcache. Possibly can't find ehcache.xsd??</title>
	<published>2009-07-01T23:24:49Z</published>
	<updated>2009-07-01T23:24:49Z</updated>
	<author>
		<name>DanyRouss</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Can you please send me documentation on how to use Ehcache in Swing Application?
&lt;br&gt;&lt;br&gt;Many Thanks,
&lt;br&gt;Dany</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problems-initialising-ehcache.-Possibly-can%27t-find-ehcache.xsd---tp14507708p24301834.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24002966</id>
	<title>Offline web application</title>
	<published>2009-06-12T10:18:12Z</published>
	<updated>2009-06-12T10:18:12Z</updated>
	<author>
		<name>max3000</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;Is the following easily supported by ehcache?
&lt;br&gt;&lt;br&gt;I want to front a remote web server with a local web server. The local server would cache the remote content with ehcache. Network connection will be intermittent. The cache would never expire per se, only be updated periodically whenever there is connectivity. 
&lt;br&gt;&lt;br&gt;Caching would also work the other way. Modifications (PUT, POST, DELETE) done by the client would be cached and forwarded to the server whenever connectivity is present.
&lt;br&gt;&lt;br&gt;I reckon some code will be necessary for this, I don't expect ehcache to do it all. I'm just wondering what that would entail and if it falls within ehcache typical usage.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Max
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Offline-web-application-tp24002966p24002966.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23604542</id>
	<title>Re: Is there an official javax.cache api/jar yet?</title>
	<published>2009-05-18T13:37:08Z</published>
	<updated>2009-05-18T13:37:08Z</updated>
	<author>
		<name>lhazlewood</name>
	</author>
	<content type="html">Hi Greg,
&lt;br&gt;&lt;br&gt;Any movement on this yet? &amp;nbsp;It'd be nice to program against javax.cache.* APIs rather than net.sf ones.
&lt;br&gt;&lt;br&gt;Also, unrelated, is it finalized that javax.cache.Cache will extend ConcurrentMap?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Les
&lt;br&gt;&lt;br&gt;&lt;blockquote class=&quot;quote light-black dark-border-color&quot;&gt;&lt;div class=&quot;quote light-border-color&quot;&gt;
&lt;div class=&quot;quote-author&quot; style=&quot;font-weight: bold;&quot;&gt;gregluck wrote:&lt;/div&gt;
&lt;div class=&quot;quote-message shrinkable-quote&quot;&gt;Travis
&lt;br&gt;&lt;br&gt;The closest we have is the net.sf.jsr107 package, which is the draft &amp;nbsp;
&lt;br&gt;API but in a sourceforge package. You can get it from Maven central or &amp;nbsp;
&lt;br&gt;from Sourceforge.
&lt;br&gt;&lt;br&gt;I am looking into whether I can release the drafts as a javax.cache &amp;nbsp;
&lt;br&gt;package. I think the answer is yes, in which case I hope to have a &amp;nbsp;
&lt;br&gt;draft out in the next few weeks.
&lt;br&gt;&lt;br&gt;On 29/05/2008, at 7:18 AM, Travis Reeder wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://code.google.com/p/simplejpa/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://code.google.com/p/simplejpa/&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;&lt;/blockquote&gt;
</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Is-there-an-official-javax.cache-api-jar-yet--tp17522481p23604542.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23442065</id>
	<title>Cache decorators are no use with ORMs</title>
	<published>2009-05-08T01:29:02Z</published>
	<updated>2009-05-08T01:29:02Z</updated>
	<author>
		<name>Misha K.</name>
	</author>
	<content type="html">After many hours of hacking I came to conclusion that ehcache's beloved decorators are simply useless with any ORM. This is because hibernate, for instance, never stores original key/object in the cache but stores either CacheKey/Map or CacheKey/CacheEntry with some extra parameters that are simply not available outside of hibernate. So, even if I implemented CacheEntryFactory to find and return entry, this entry is not what hibernate wants - it wants CacheEntry. I could prolly mock CacheEntry and fool hibernate but what good is that hack for production application. 
&lt;br&gt;&lt;br&gt;If Greg L. or anyone else has an idea about using cache decorators with ORMs - please speak up.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cache-decorators-are-no-use-with-ORMs-tp23442065p23442065.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23333649</id>
	<title>Unable to get the stored Cache</title>
	<published>2009-05-01T07:08:26Z</published>
	<updated>2009-05-01T07:08:26Z</updated>
	<author>
		<name>Jawahar Nayak</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;&amp;nbsp;I am using the for caching. I am able to put and get the items upto 3 lac. If I try the application with more than 3 lac, I am not able to get some of items back. It returns null.
&lt;br&gt;&lt;br&gt;I am posting the code :
&lt;br&gt;&lt;br&gt;package ehcache;
&lt;br&gt;&lt;br&gt;/*
&lt;br&gt;&amp;nbsp;* To change this template, choose Tools | Templates
&lt;br&gt;&amp;nbsp;* and open the template in the editor.
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;import java.io.File;
&lt;br&gt;import java.io.FileInputStream;
&lt;br&gt;import java.io.FileNotFoundException;
&lt;br&gt;import java.io.IOException;
&lt;br&gt;import java.io.InputStream;
&lt;br&gt;import java.util.Date;
&lt;br&gt;&lt;br&gt;import java.util.logging.Level;
&lt;br&gt;import java.util.logging.Logger;
&lt;br&gt;import net.sf.ehcache.Cache;
&lt;br&gt;import net.sf.ehcache.CacheManager;
&lt;br&gt;&lt;br&gt;import net.sf.ehcache.Element;
&lt;br&gt;import net.sf.ehcache.hibernate.EhCache;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;/**
&lt;br&gt;&amp;nbsp;*
&lt;br&gt;&amp;nbsp;* @author Tejkiran
&lt;br&gt;&amp;nbsp;*/
&lt;br&gt;public class EHCacheTest {
&lt;br&gt;&amp;nbsp; &amp;nbsp; Cache cache=null;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; String Key =&amp;quot;thisiskey&amp;quot;;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;CacheManager manager=null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Cache memoryOnlyCache=null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public InputStream getConfigStream() {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; InputStream fis = null;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fis = new FileInputStream(new File(&amp;quot;conf/ehcache.xml&amp;quot;).getAbsolutePath());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// return EHCacheTest.class.getResourceAsStream(&amp;quot;/ehcache.xml&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (FileNotFoundException ex) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Logger.getLogger(EHCacheTest.class.getName()).log(Level.SEVERE, null, ex);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } finally {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fis.close();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; } catch (IOException ex) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Logger.getLogger(EHCacheTest.class.getName()).log(Level.SEVERE, null, ex);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return fis;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void writeToEHCache(long nList) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; long nStart = (Long) new Date().getTime();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; manager = CacheManager.create(&amp;quot;E:\\workarea\\Chambal\\Projects\\EHCache\\conf\\ehcache.xml&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; manager = CacheManager.create();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memoryOnlyCache = new Cache(&amp;quot;testCache&amp;quot;, 500000, true, true, 5, 2);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; manager.addCache(memoryOnlyCache);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cache = manager.getCache(&amp;quot;testCache&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for (long i = 0; i &amp;lt; nList; i++) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Element key = new Element(Key+i, &amp;quot;d&amp;quot;+i);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cache.put(key);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.err.println(&amp;quot;Memory : &amp;quot;+ cache.getMaxElementsInMemory() + &amp;quot; Disk : &amp;quot;+ cache.getMemoryStoreSize());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; long nEnd = (Long) new Date().getTime();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;Total consumed EHCache Time : &amp;quot; + (nEnd - nStart));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }catch(RuntimeException ex){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;Exception :&amp;quot; +ex.toString()+&amp;quot; Message&amp;quot;+ ex.getMessage());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public void readFromEHCache(long nlist){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; long i=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; long nStart=0, nEnd=0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;try{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nStart = (Long) new Date().getTime();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Cache cache1 = manager.getCache(&amp;quot;testCache&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//EhCache cache1 = cache;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.err.println(&amp;quot;Memory : &amp;quot;+ cache.getMaxElementsInMemory());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//System.out.print(cache1.getKeys().size());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for ( i = 0; i &amp;lt; nlist; i++) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String key = Key+(i);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Element hello = cache.get(key);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //String sValue = (String) cache1.read(key);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.err.println(hello.getObjectValue());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //System.err.println(sValue);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // &amp;nbsp;manager.shutdown(); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;nEnd = (Long) new Date().getTime();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;Total Get consumed EHCache Time : &amp;quot; + (nEnd - nStart));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }catch(RuntimeException ex){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;:- &amp;quot;+i);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;Exception :&amp;quot; +ex.toString()+&amp;quot; message :&amp;quot; + ex.getMessage());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; nEnd = (Long) new Date().getTime();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;Total Get consumed EHCache Time : &amp;quot; + (nEnd - nStart));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static void main(String[] arg){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; EHCacheTest objEHCacheTest = new EHCacheTest();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; long nmax=2000;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; objEHCacheTest.writeToEHCache(nmax);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; objEHCacheTest.readFromEHCache(nmax);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp;I am using the default configuration.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Unable-to-get-the-stored-Cache-tp23333649p23333649.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-23071545</id>
	<title>Using ehcache-debugger ?</title>
	<published>2009-04-15T22:12:06Z</published>
	<updated>2009-04-16T17:22:11Z</updated>
	<author>
		<name>nodje</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I stumbled upon ehcache-debugger while looking for ehcache latest version.
&lt;br&gt;I'd be potentially interested b ut couldn't find any doc. Could someone point me toward a documentation if there's one?
&lt;br&gt;&lt;br&gt;I hope this could help me spot some problems we have with ehcache in an Hibernate environment.
&lt;br&gt;It basically does the job pretty well but there's a few points I'd like to be able to improve:
&lt;br&gt;&lt;br&gt;- some request/entities don't get a cache hit even though they've juste been added to the cache. This only happens on some request. I've just spotted one that seem to always miss the cahe and try to understand what's going on.
&lt;br&gt;&lt;br&gt;- ehcache is a key part of our system, and ss such, we definitely need to optimize the memory it can use to store object, and so the size of allocated cache for object and requests.
&lt;br&gt;Our basic rule of thumb was:
&lt;br&gt;- give a full space for Entities that have less than 1000 records in db
&lt;br&gt;- limit other entities according to their size (from 1000 to 10000 elements according to their size)
&lt;br&gt;&lt;br&gt;Would ehcache-debugger help for these purposes?
&lt;br&gt;&lt;br&gt;thanks
&lt;br&gt;-nodje
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Using-ehcache-debugger---tp23071545p23071545.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22992824</id>
	<title>Classloading issues with Tomcat JNDI and Replication</title>
	<published>2009-04-10T11:43:11Z</published>
	<updated>2009-04-10T11:43:11Z</updated>
	<author>
		<name>majohnst</name>
	</author>
	<content type="html">I have setup replication between several of our webservers. Each webserver runs multiple apps that need to access the cache, so we exposed Ehcache as a JNDI resource. This way all the apps within a tomcat instance can use the same cache. The replication works correctly for basic string based cache items. But now I am wanting to cache a POJO and I get a classcast/class not found exception.
&lt;br&gt;&lt;br&gt;I understand why this happens, because ehcache is loaded by the tomcat system classloader and the webapps are loaded through a different classloader. If I just put my POJO class in the tomcat system class loader, everything would work correctly. But I really don't want to do that.
&lt;br&gt;&lt;br&gt;Is there any way to tell ehcache/rmi to load classes from my WAR file?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Classloading-issues-with-Tomcat-JNDI-and-Replication-tp22992824p22992824.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22914545</id>
	<title>EHCache Remote Server Statistics</title>
	<published>2009-04-06T11:44:02Z</published>
	<updated>2009-04-06T11:44:02Z</updated>
	<author>
		<name>Viral.Desai</name>
	</author>
	<content type="html">Hello Greg,
&lt;br&gt;&lt;br&gt;I've implemented EHCache Remote server as part of caching strategy using RESTful service. I'd like to know what is the best way to get Cache Statistics from the Remote Sever? I can do it using OPTION, but, esentially it is a REQUEST/RESPONSE. I'd like to avoid parsing the RESPONSE string.
&lt;br&gt;&lt;br&gt;Thanks</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/EHCache-Remote-Server-Statistics-tp22914545p22914545.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22912834</id>
	<title>EHCache - Out of Memory Issue</title>
	<published>2009-04-06T09:50:45Z</published>
	<updated>2009-04-06T09:50:45Z</updated>
	<author>
		<name>Pia</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&amp;nbsp;In order to improve the performance of our system, we recently moved to EHCache. We have a nightly process that runs and loads data into the cache and the next day all our users get served from the cache. This solution was working fine until last week. This week on, consistently we have been facing an out of memory issue. 
&lt;br&gt;&lt;br&gt;This is what changed between last week and this week, 
&lt;br&gt;&lt;br&gt;Until last week we had just about 25 stores whose data was loaded to the cache. We changed this to load data for close to 300 stores. Volume of data is something like this,
&lt;br&gt;&lt;br&gt;Each store 100,000 rows of data.
&lt;br&gt;&lt;br&gt;Any ideas of why we are running into this issue??
&lt;br&gt;&lt;br&gt;Our memory config is this ,
&lt;br&gt;&lt;br&gt;-Xms6g
&lt;br&gt;-XX:MaxPermSize=192m
&lt;br&gt;-Xmx6g
&lt;br&gt;&lt;br&gt;We use EHCache-1.5.0.jar
&lt;br&gt;&lt;br&gt;If there is any other information I need to furnish,will be more than happy to do that. Appreciate any kind of help here.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Pia</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/EHCache---Out-of-Memory-Issue-tp22912834p22912834.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22708600</id>
	<title>Closing The Ehcache Mailing List Due to Spam - Please use the Forums Instead</title>
	<published>2009-03-25T11:36:30Z</published>
	<updated>2009-03-25T11:36:30Z</updated>
	<author>
		<name>gregluck</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;Hi&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The mailing list is becoming overwhelmed with SPAM. &amp;nbsp;I have had manual moderation for the past 6 months but is getting very tedious picking out the messages from the SPAM manually.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I have raised numerous requests with SourceForge who, though they mark SPAM as SPAM are seemingly unable to stop spam from being delivered to the lists.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;So I can spend more time writing code and less filtering spam, I am closing the mailing list. If SourceForge can get it together I will reopen the list.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Please use the forums here: &lt;a href=&quot;http://sourceforge.net/forum/?group_id=93232&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/forum/?group_id=93232&lt;/a&gt; instead.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I get emailed on each forum post so it is easy for me to keep across the discussion threads.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;&lt;div apple-content-edited=&quot;true&quot;&gt; &lt;div style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; &quot;&gt;&lt;font face=&quot;Helvetica&quot; size=&quot;3&quot; style=&quot;font: normal normal normal 12px/normal Helvetica; &quot;&gt;Regards&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; &quot;&gt;&lt;font face=&quot;Helvetica&quot; size=&quot;3&quot; style=&quot;font: normal normal normal 12px/normal Helvetica; &quot;&gt;Greg Luck&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br class=&quot;khtml-block-placeholder&quot;&gt;&lt;/div&gt;&lt;div&gt;web:&amp;nbsp;&lt;a href=&quot;http://gregluck.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gregluck.com&lt;/a&gt;&lt;/div&gt;&lt;div&gt;skype: gregrluck&lt;div&gt;yahoo: gregrluck&lt;/div&gt;mobile:&amp;nbsp;+61 408 061 622&lt;/div&gt;&lt;/div&gt;&lt;/div&gt; &lt;/div&gt;&lt;br&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708600&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Closing-The-Ehcache-Mailing-List-Due-to-Spam---Please-use-the-Forums-Instead-tp22708600p22708600.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22708380</id>
	<title>Re: HTTP Caching Header Aware Servlet Filter</title>
	<published>2009-03-23T08:44:27Z</published>
	<updated>2009-03-23T08:44:27Z</updated>
	<author>
		<name>candrews</name>
	</author>
	<content type="html">I just read over your changes - it looks excellent. You've cleaned it up
&lt;br&gt;nicely.
&lt;br&gt;&lt;br&gt;My use of SimpleDateFormat is threadsafe. I synchronize on its use so I
&lt;br&gt;don't have to create new instances every time (preventing some garbage
&lt;br&gt;collector thrashing). However, that's a very minor detail, and I have no
&lt;br&gt;idea if synchronizing on one instance or creating a new one per request is
&lt;br&gt;faster.
&lt;br&gt;&lt;br&gt;Thanks for including my work,
&lt;br&gt;~Craig
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Craig
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I have added your filter, along with some tests.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Changes I have made:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1) SimpleDateFormat is not threadsafe as used. Fixed
&lt;br&gt;&amp;gt; 2) Removed dep on Apache classes
&lt;br&gt;&amp;gt; 3) Added tests, doco and made cacheName and blocking timeout
&lt;br&gt;&amp;gt; configurable
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I will be putting this out as ehcache-web.1.6-beta1 today or tomorrow.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On 14/02/2009, at 4:38 PM, Craig Andrews wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I recently implemented a servlet filter that extends the
&lt;br&gt;&amp;gt;&amp;gt; SimplePageCachingFilter, adding support for the ETags, Last-
&lt;br&gt;&amp;gt;&amp;gt; Modified, and
&lt;br&gt;&amp;gt;&amp;gt; Expires HTTP headers. I think this filter would benefit many of
&lt;br&gt;&amp;gt;&amp;gt; Ehcache's
&lt;br&gt;&amp;gt;&amp;gt; users - for my project, it enabled us to leverage Apache's mod_cache,
&lt;br&gt;&amp;gt;&amp;gt; eliminating many hits to Tomcat completely.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I've posted the code on my blog - can you please consider including
&lt;br&gt;&amp;gt;&amp;gt; in a
&lt;br&gt;&amp;gt;&amp;gt; future version of Ehcache?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://candrews.integralblue.com/2009/02/http-caching-header-aware-servlet-filter/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://candrews.integralblue.com/2009/02/http-caching-header-aware-servlet-filter/&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Thanks!
&lt;br&gt;&amp;gt;&amp;gt; ~Craig
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt; Open Source Business Conference (OSBC), March 24-25, 2009, San
&lt;br&gt;&amp;gt;&amp;gt; Francisco, CA
&lt;br&gt;&amp;gt;&amp;gt; -OSBC tackles the biggest issue in open source: Open Sourcing the
&lt;br&gt;&amp;gt;&amp;gt; Enterprise
&lt;br&gt;&amp;gt;&amp;gt; -Strategies to boost innovation and cut costs with open source
&lt;br&gt;&amp;gt;&amp;gt; participation
&lt;br&gt;&amp;gt;&amp;gt; -Receive a $600 discount off the registration fee with the source
&lt;br&gt;&amp;gt;&amp;gt; code: SFAD
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/XcvMzF8H&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/XcvMzF8H&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt; ehcache-list mailing list
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708380&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Regards
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Greg Luck
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; web: &lt;a href=&quot;http://gregluck.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gregluck.com&lt;/a&gt;&lt;br&gt;&amp;gt; skype: gregrluck
&lt;br&gt;&amp;gt; yahoo: gregrluck
&lt;br&gt;&amp;gt; mobile: +61 408 061 622
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708380&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-HTTP-Caching-Header-Aware-Servlet-Filter-tp22708360p22708380.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22708360</id>
	<title>Re: HTTP Caching Header Aware Servlet Filter</title>
	<published>2009-03-23T00:29:12Z</published>
	<updated>2009-03-23T00:29:12Z</updated>
	<author>
		<name>gregluck</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;Craig&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I have added your filter, along with some tests.&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Changes I have made:&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;1) SimpleDateFormat is not threadsafe as used. Fixed&lt;/div&gt;&lt;div&gt;2) Removed dep on Apache classes&lt;/div&gt;&lt;div&gt;3) Added tests, doco and made cacheName and blocking timeout configurable&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I will be putting this out as ehcache-web.1.6-beta1 today or tomorrow.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;On 14/02/2009, at 4:38 PM, Craig Andrews wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;div&gt;I recently implemented a servlet filter that extends the&lt;br&gt;SimplePageCachingFilter, adding support for the ETags, Last-Modified, and&lt;br&gt;Expires HTTP headers. I think this filter would benefit many of Ehcache's&lt;br&gt;users - for my project, it enabled us to leverage Apache's mod_cache,&lt;br&gt;eliminating many hits to Tomcat completely.&lt;br&gt;&lt;br&gt;I've posted the code on my blog - can you please consider including in a&lt;br&gt;future version of Ehcache?&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://candrews.integralblue.com/2009/02/http-caching-header-aware-servlet-filter/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://candrews.integralblue.com/2009/02/http-caching-header-aware-servlet-filter/&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thanks!&lt;br&gt;~Craig&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA&lt;br&gt;-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise&lt;br&gt;-Strategies to boost innovation and cut costs with open source participation&lt;br&gt;-Receive a $600 discount off the registration fee with the source code: SFAD&lt;br&gt;http://p.sf.net/sfu/XcvMzF8H&lt;br&gt;_______________________________________________&lt;br&gt;ehcache-list mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708360&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;&lt;br&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;div&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; &quot;&gt;&lt;div style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;&lt;div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; &quot;&gt;&lt;font face=&quot;Helvetica&quot; size=&quot;3&quot; style=&quot;font: normal normal normal 12px/normal Helvetica; &quot;&gt;Regards&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Helvetica; min-height: 14px; &quot;&gt;&lt;br&gt;&lt;/div&gt;&lt;div style=&quot;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; &quot;&gt;&lt;font face=&quot;Helvetica&quot; size=&quot;3&quot; style=&quot;font: normal normal normal 12px/normal Helvetica; &quot;&gt;Greg Luck&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br class=&quot;khtml-block-placeholder&quot;&gt;&lt;/div&gt;&lt;div&gt;web:&amp;nbsp;&lt;a href=&quot;http://gregluck.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gregluck.com&lt;/a&gt;&lt;/div&gt;&lt;div&gt;skype: gregrluck&lt;div&gt;yahoo: gregrluck&lt;/div&gt;mobile:&amp;nbsp;+61 408 061 622&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt; &lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708360&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-HTTP-Caching-Header-Aware-Servlet-Filter-tp22708360p22708360.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22708370</id>
	<title>[ehcache] RMICacheManagerPeerProviderFactory and Multi host suppor</title>
	<published>2009-03-22T18:24:59Z</published>
	<updated>2009-03-22T18:24:59Z</updated>
	<author>
		<name>jiacong he</name>
	</author>
	<content type="html">&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: collapse; &quot;&gt;Our server have two ip,one is real ip,another is LAN ip(such as 192.168.0.2),the &lt;span style=&quot;border-collapse: collapse; white-space: pre; &quot;&gt;real ip is protected by iptables and LAN ip is not,&lt;/span&gt;but when I use &lt;span style=&quot;border-collapse: collapse; white-space: pre; &quot;&gt;RMICacheManagerPeerProviderFactory,the MulticastSocket use the real ip to broadcast,so all package is blocked, so peers can not be detected each other.&lt;/span&gt;&lt;div&gt;
&lt;span style=&quot;border-collapse: collapse; white-space: pre; &quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: collapse; white-space: pre; &quot;&gt;MulticastSocket  have other constructors can set the host and ip,why not add some config properties to let me decide which ip to use?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;border-collapse: collapse; white-space: pre; &quot;&gt;for example properties=&amp;quot;peerDiscovery=automatic,multicastGroupAddress=230.0.0.1,multicastGroupPort=4444,&lt;span style=&quot;font-weight: bold; &quot;&gt;multicastAddress=192.168.0.2&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;border-collapse: collapse; white-space: pre; &quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;border-collapse: collapse; white-space: pre; &quot;&gt;public MulticastSocket(String host,int port) throws IOException {
	this(new InetSocketAddress(host,port));
 }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708370&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-ehcache--RMICacheManagerPeerProviderFactory-and-Multi-host-suppor-tp22708370p22708370.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22570967</id>
	<title>New User: ehcache doesn't seem to save to disk</title>
	<published>2009-03-17T17:50:38Z</published>
	<updated>2009-03-17T17:50:38Z</updated>
	<author>
		<name>falcon</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;I just downloaded ehcache 1.6 and am testing it on Java 1.6 (windows).
&lt;br&gt;In my test, I am writing data to a cache, that cache seems to write something to disk (I can see something in the .index file, although .data file is empty). &amp;nbsp;Even after I shutdown the JVM, the index file has the same data. &amp;nbsp;When I run my program again, the index file gets reset to zero bytes and it shows that I have nothing in the cache!
&lt;br&gt;&lt;br&gt;What am I doing wrong?
&lt;br&gt;&lt;br&gt;-----------------My config file (comments, test caches, xml boiler plate, etc. removed):
&lt;br&gt;&amp;lt;diskStore path=&amp;quot;data&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;cacheManagerEventListenerFactory class=&amp;quot;&amp;quot; properties=&amp;quot;&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;cacheManagerPeerProviderFactory
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&amp;quot;net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties=&amp;quot;peerDiscovery=automatic,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; multicastGroupAddress=230.0.0.1,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; multicastGroupPort=4446, timeToLive=1&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; propertySeparator=&amp;quot;,&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /&amp;gt;
&lt;br&gt;&amp;lt;cacheManagerPeerListenerFactory
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&amp;quot;net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;lt;defaultCache
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxElementsInMemory=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eternal=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToIdleSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToLiveSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; overflowToDisk=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskSpoolBufferSizeMB=&amp;quot;30&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxElementsOnDisk=&amp;quot;0&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskPersistent=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskExpiryThreadIntervalSeconds=&amp;quot;0&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memoryStoreEvictionPolicy=&amp;quot;LRU&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /&amp;gt;
&lt;br&gt;&amp;lt;cache name=&amp;quot;cache1&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; maxElementsInMemory=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eternal=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToIdleSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToLiveSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; overflowToDisk=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskSpoolBufferSizeMB=&amp;quot;30&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxElementsOnDisk=&amp;quot;0&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskPersistent=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskExpiryThreadIntervalSeconds=&amp;quot;0&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memoryStoreEvictionPolicy=&amp;quot;LRU&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /&amp;gt;
&lt;br&gt;&lt;br&gt;-------My Test Code----------
&lt;br&gt;package test;
&lt;br&gt;&lt;br&gt;import java.util.Map;
&lt;br&gt;import java.util.concurrent.ConcurrentHashMap;
&lt;br&gt;&lt;br&gt;import QUOTE;//import quote data type from my internal package heirarchy, taken out here
&lt;br&gt;&lt;br&gt;import net.sf.ehcache.Cache;
&lt;br&gt;import net.sf.ehcache.CacheManager;
&lt;br&gt;import net.sf.ehcache.Element;
&lt;br&gt;&lt;br&gt;public class EHCacheTest {
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /**
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* @param args
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; public static void main(String[] args) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CacheManager manager = new CacheManager(&amp;quot;config/ehcache.xml&amp;quot;);
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Cache cache1=manager.getCache(&amp;quot;cache1&amp;quot;);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int size=1000000;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;Size of cache is &amp;quot;+cache1.getSize());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for(int i=0;i&amp;lt;size;i++){
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String id =Util.newOrderID(); 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cache1.put(new Element(id,new QUOTE(&amp;quot;x&amp;quot;,23.23,3434l)));
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println(&amp;quot;Size of cache is &amp;quot;+cache1.getSize());
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; manager.shutdown();
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;Thanks</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/New-User%3A-ehcache-doesn%27t-seem-to-save-to-disk-tp22570967p22570967.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22708344</id>
	<title>Re: java.net.MalformedURLException: invalid character, '#', in URL name</title>
	<published>2009-03-16T16:50:33Z</published>
	<updated>2009-03-16T16:50:33Z</updated>
	<author>
		<name>gregluck</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;Ray&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;# is definitely an illegal character in Naming.java&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;From the URL javadoc:&lt;/div&gt;&lt;div&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; The syntax of &lt;code&gt;URL&lt;/code&gt; is defined by &lt;i&gt;&lt;a href=&quot;http://www.ietf.org/rfc/rfc2396.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;RFC&amp;nbsp;2396: 
      U&lt;/a&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-style: normal; &quot;&gt;&lt;i&gt;&lt;a href=&quot;http://www.ietf.org/rfc/rfc2396.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;niform Resource Identifiers (URI): Generic Syntax&lt;/a&gt;&lt;/i&gt;, amended by &lt;i&gt;&lt;a href=&quot;http://www.ietf.org/rfc/rfc2732.txt&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;RFC&amp;nbsp;2732: 
      Format for Literal IPv6 Addresses in URLs&lt;/a&gt;&lt;/i&gt;. The Literal IPv6 
      address format also supports scope_ids. The syntax and usage of 
      scope_ids is described &lt;a href=&quot;Inet6Address.html#scoped&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/i&gt;&lt;/p&gt;&lt;p&gt;
      A URL may have appended to it a &quot;fragment&quot;, also known as a &quot;ref&quot; or a 
      &quot;reference&quot;. The fragment is indicated by the sharp sign character &quot;#&quot; 
      followed by more characters. For example,
    &lt;/p&gt;
    &lt;blockquote&gt;
      &lt;pre&gt;       &lt;a href=&quot;http://java.sun.com/index.html#chapter1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/index.html#chapter1&lt;/a&gt;&lt;/pre&gt;
    &lt;/blockquote&gt;
  
&lt;/div&gt;&lt;div&gt;Now, the issue is being caused by the use of #. I don't think anything should have changed between versions of ehcache, because this is JDK code.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;The fix is in your app is to avoid #. The ehcache fix would be to escape illegal characters. Let me know what you think.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;On 18/02/2009, at 1:29 AM, Ray Auge wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt; &lt;div&gt; We recently upgraded to ehcache 1.5.0 and are now getting this error on starting with cluster config:&lt;br&gt; &lt;br&gt; &lt;br&gt; &lt;pre&gt;SEVERE: Servlet&amp;nbsp; threw load() exception
java.net.MalformedURLException: invalid character, '#', in URL name: //192.168.0.249:37042/com.liferay.portal.kernel.dao.orm.FinderCache#com.liferay.portal.model.Company
	at java.rmi.Naming.parseURL(Naming.java:222)
	at java.rmi.Naming.rebind(Naming.java:154)
	at net.sf.ehcache.distribution.RMICacheManagerPeerListener.bind(RMICacheManagerPeerListener.java:230)
	at net.sf.ehcache.distribution.RMICacheManagerPeerListener.notifyCacheAdded(RMICacheManagerPeerListener.java:511)
	at net.sf.ehcache.event.CacheManagerEventListenerRegistry.notifyCacheAdded(CacheManagerEventListenerRegistry.java:156)
	at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:720)
	at net.sf.ehcache.CacheManager.addCache(CacheManager.java:697)
	at net.sf.ehcache.CacheManager.addCache(CacheManager.java:634)
	at com.liferay.portal.cache.EhcachePortalCacheManager.getCache(EhcachePortalCacheManager.java:75)
	at com.liferay.portal.cache.MultiVMPoolImpl.getCache(MultiVMPoolImpl.java:61)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...
&lt;/pre&gt; &lt;br&gt; Anyone ever seen this before?&lt;br&gt; &lt;br&gt; Ray&lt;br&gt; &lt;br&gt; &lt;/div&gt;  ------------------------------------------------------------------------------&lt;br&gt;Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are&lt;br&gt;powering Web 2.0 with engaging, cross-platform capabilities. Quickly and&lt;br&gt;easily build your RIAs with Flex Builder, the Eclipse(TM)based development&lt;br&gt;software that enables intelligent coding and step-through debugging.&lt;br&gt;Download the free 60 day trial. &lt;a href=&quot;http://p.sf.net/sfu/www-adobe-com_______________________________________________&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/www-adobe-com_______________________________________________&lt;/a&gt;&lt;br&gt;ehcache-list mailing list&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708344&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;&lt;br&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708344&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/java.net.MalformedURLException%3A-invalid-character%2C-%27-%27%2C-in-URL-name-tp22532895p22708344.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22708359</id>
	<title>ehcache.xml include</title>
	<published>2009-03-16T10:59:36Z</published>
	<updated>2009-03-16T10:59:36Z</updated>
	<author>
		<name>Herve Guidetti1</name>
	</author>
	<content type="html">
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;Hi all, &lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;I'm working with one custom library
A that use ehcache. This custome library A has its own ehcache.xml in the
classpath. &lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;The project B that use this library
use also ehcache and has its own ehcache.xml. &lt;/font&gt;
&lt;br&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;I would like to know if it is possible
in the ehcache of project B to include the ehcache.xml of library A ?&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;Is there any other way to include another
ehcache.xml ?&lt;br&gt;
&lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;Thanks for you help. &lt;/font&gt;
&lt;br&gt;&lt;font size=2 face=&quot;sans-serif&quot;&gt;Hervé&lt;/font&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708359&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/ehcache.xml-include-tp22708359p22708359.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22708379</id>
	<title>Re: net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator: java.rmi.UnknownHostException</title>
	<published>2009-03-16T07:04:49Z</published>
	<updated>2009-03-16T07:04:49Z</updated>
	<author>
		<name>Nathan Good</name>
	</author>
	<content type="html">&lt;br&gt;I was able to resolve this issue. &amp;nbsp;For posterity, it was an RMI issue. &amp;nbsp;The host on which RMI was running was not using its FQDN in the RMI messages.
&lt;br&gt;&lt;br&gt;Here is a FAQ the describes the issue and resolution in more detail:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://java.sun.com/j2se/1.5.0/docs/guide/rmi/faq.html#netunknownhost&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://java.sun.com/j2se/1.5.0/docs/guide/rmi/faq.html#netunknownhost&lt;/a&gt;&lt;br&gt;&lt;br&gt;Since I'm using JBoss, I simply defined an additional JAVA_OPT of &amp;quot;-Djava.rmi.server.hostname=server1.this.domain.example.com&amp;quot;. &amp;nbsp;It worked great after that.
&lt;br&gt;&lt;br&gt;--Nathan
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; --- On Tue, 3/10/09, Nathan Good
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708379&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nathanagood@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; From: Nathan Good &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708379&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;nathanagood@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Subject: [ehcache-list]
&lt;br&gt;&amp;gt; net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator:
&lt;br&gt;&amp;gt; java.rmi.UnknownHostException
&lt;br&gt;&amp;gt; To: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708379&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Date: Tuesday, March 10, 2009, 7:09 AM
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am attempting to set up a distributed cache between two
&lt;br&gt;&amp;gt; servers and am
&lt;br&gt;&amp;gt; getting an java.rmi.UnknownHostException (see stack trace
&lt;br&gt;&amp;gt; in this e-mail). &amp;nbsp;I
&lt;br&gt;&amp;gt; have verified that using the short name the host is not
&lt;br&gt;&amp;gt; resolvable from server2
&lt;br&gt;&amp;gt; to server1, since they are in different domains. &amp;nbsp;However,
&lt;br&gt;&amp;gt; I am using the FQDN
&lt;br&gt;&amp;gt; in the configuration files and have even used the IP
&lt;br&gt;&amp;gt; addresses in the
&lt;br&gt;&amp;gt; configuration files on both servers with the same results. 
&lt;br&gt;&amp;gt; It's as if the
&lt;br&gt;&amp;gt; FQDN or IP address is being ignored and it's pulling
&lt;br&gt;&amp;gt; the short name from
&lt;br&gt;&amp;gt; somewhere.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ehcache 1.5.0, manual peer discovery, running inside JBoss
&lt;br&gt;&amp;gt; 5.0.0.GA
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The servers are NOT in each other's /etc/hosts file. 
&lt;br&gt;&amp;gt; The FQDNs of the
&lt;br&gt;&amp;gt; servers are resolvable from each other, but only when given
&lt;br&gt;&amp;gt; as a FQDN.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I would really appreciate any suggestions anyone might
&lt;br&gt;&amp;gt; have. &amp;nbsp;Thank you!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; server1.this.domain.example.com -&amp;gt; messages sent
&lt;br&gt;&amp;gt; successfully to
&lt;br&gt;&amp;gt; server2.that.domain.example.com
&lt;br&gt;&amp;gt; server2.that.domain.example.com -&amp;gt; says
&lt;br&gt;&amp;gt; server1.this.domain.example.com is
&lt;br&gt;&amp;gt; unknown
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here is the stack trace from
&lt;br&gt;&amp;gt; server2.that.domain.example.com:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2009-03-10 09:35:03,643 WARN 
&lt;br&gt;&amp;gt; [net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator]
&lt;br&gt;&amp;gt; (Replication
&lt;br&gt;&amp;gt; Thread) Unable to send message to remote peer. &amp;nbsp;Message
&lt;br&gt;&amp;gt; was: Unknown host:
&lt;br&gt;&amp;gt; server1; nested exception is:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.net.UnknownHostException: server1
&lt;br&gt;&amp;gt; java.rmi.UnknownHostException: Unknown host: server1;
&lt;br&gt;&amp;gt; nested exception is:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.net.UnknownHostException: server1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:572)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; net.sf.ehcache.distribution.RMICachePeer_Stub.send(Unknown
&lt;br&gt;&amp;gt; Source)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.flushReplicationQueue(RMIAsynchronousCacheReplicator.java:309)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.replicationThreadMain(RMIAsynchronousCacheReplicator.java:122)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.access$100(RMIAsynchronousCacheReplicator.java:55)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator$ReplicationThread.run(RMIAsynchronousCacheReplicator.java:368)
&lt;br&gt;&amp;gt; Caused by: java.net.UnknownHostException: server1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:520)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:470)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.&amp;lt;init&amp;gt;(Socket.java:367)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.&amp;lt;init&amp;gt;(Socket.java:180)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; net.sf.ehcache.distribution.ConfigurableRMIClientSocketFactory.createSocket(ConfigurableRMIClientSocketFactory.java:72)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at
&lt;br&gt;&amp;gt; sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 8 more
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here are the configuration files (I've changed the
&lt;br&gt;&amp;gt; names of the server for
&lt;br&gt;&amp;gt; security reasons):
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; server1.this.domain.example.com config:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;ehcache
&lt;br&gt;&amp;gt; xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; xsi:noNamespaceSchemaLocation=&amp;quot;ehcache.xsd&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;cacheManagerPeerProviderFactory class=
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;quot;net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; properties=&amp;quot;peerDiscovery=manual,
&lt;br&gt;&amp;gt; rmiUrls=//server2.that.domain.com:40000/cache1|//server2.that.domain.com:40000/cache2
&lt;br&gt;&amp;gt; |//server2.that.domain.com:40000/cache3|//server2.that.domain.com:40000/cache4&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; propertySeparator=&amp;quot;,&amp;quot;
&lt;br&gt;&amp;gt; /&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;cacheManagerPeerListenerFactory
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; class=&amp;quot;net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties=&amp;quot;hostName=, port=40000,
&lt;br&gt;&amp;gt; socketTimeoutMillis=2000&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;defaultCache
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxElementsInMemory=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eternal=&amp;quot;false&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToIdleSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToLiveSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; overflowToDisk=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskSpoolBufferSizeMB=&amp;quot;30&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxElementsOnDisk=&amp;quot;10000000&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskPersistent=&amp;quot;false&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskExpiryThreadIntervalSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memoryStoreEvictionPolicy=&amp;quot;LRU&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;cache name=&amp;quot;cache1&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxElementsInMemory=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxElementsOnDisk=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;eternal=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;overflowToDisk=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memoryStoreEvictionPolicy=&amp;quot;LRU&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;diskPersistent=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;cacheEventListenerFactory
&lt;br&gt;&amp;gt; class=&amp;quot;com.ml.art.util.cache.ConfigurationEventListenerFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;cacheEventListenerFactory
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; class=&amp;quot;net.sf.ehcache.distribution.RMICacheReplicatorFactory&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties=&amp;quot;replicateAsynchronously=true,
&lt;br&gt;&amp;gt; replicatePuts=true,
&lt;br&gt;&amp;gt; replicateUpdates=true,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; replicateUpdatesViaCopy=true,
&lt;br&gt;&amp;gt; replicateRemovals=true &amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/cache&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;!-- ... rest of caches ... --&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/ehcache&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; File from server2.that.domain.example.com:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;lt;ehcache
&lt;br&gt;&amp;gt; xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; xsi:noNamespaceSchemaLocation=&amp;quot;ehcache.xsd&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;cacheManagerPeerProviderFactory class=
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;quot;net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; properties=&amp;quot;peerDiscovery=manual,
&lt;br&gt;&amp;gt; rmiUrls=//server1.this.domain.com:40000/cache1|//server1.this.domain.com:40000/cache2
&lt;br&gt;&amp;gt; |//server1.this.domain.com:40000/cache3|//server1.this.domain.com:40000/cache4&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; propertySeparator=&amp;quot;,&amp;quot;
&lt;br&gt;&amp;gt; /&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;cacheManagerPeerListenerFactory
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; class=&amp;quot;net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties=&amp;quot;hostName=, port=40000,
&lt;br&gt;&amp;gt; socketTimeoutMillis=2000&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;defaultCache
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxElementsInMemory=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eternal=&amp;quot;false&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToIdleSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToLiveSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; overflowToDisk=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskSpoolBufferSizeMB=&amp;quot;30&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxElementsOnDisk=&amp;quot;10000000&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskPersistent=&amp;quot;false&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskExpiryThreadIntervalSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memoryStoreEvictionPolicy=&amp;quot;LRU&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;cache name=&amp;quot;cache1&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxElementsInMemory=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxElementsOnDisk=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;eternal=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;overflowToDisk=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memoryStoreEvictionPolicy=&amp;quot;LRU&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;diskPersistent=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;cacheEventListenerFactory
&lt;br&gt;&amp;gt; class=&amp;quot;com.ml.art.util.cache.ConfigurationEventListenerFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;cacheEventListenerFactory
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; class=&amp;quot;net.sf.ehcache.distribution.RMICacheReplicatorFactory&amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties=&amp;quot;replicateAsynchronously=true,
&lt;br&gt;&amp;gt; replicatePuts=true,
&lt;br&gt;&amp;gt; replicateUpdates=true,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; replicateUpdatesViaCopy=true,
&lt;br&gt;&amp;gt; replicateRemovals=true &amp;quot;/&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;/cache&amp;gt;
&lt;br&gt;&amp;gt; 		&amp;lt;!-- ... rest of caches ... --&amp;gt;
&lt;br&gt;&amp;gt; &amp;lt;/ehcache&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Apps built with the Adobe(R) Flex(R) framework and Flex
&lt;br&gt;&amp;gt; Builder(TM) are
&lt;br&gt;&amp;gt; powering Web 2.0 with engaging, cross-platform
&lt;br&gt;&amp;gt; capabilities. Quickly and
&lt;br&gt;&amp;gt; easily build your RIAs with Flex Builder, the
&lt;br&gt;&amp;gt; Eclipse(TM)based development
&lt;br&gt;&amp;gt; software that enables intelligent coding and step-through
&lt;br&gt;&amp;gt; debugging.
&lt;br&gt;&amp;gt; Download the free 60 day trial.
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/www-adobe-com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/www-adobe-com&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; ehcache-list mailing list
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708379&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22708379&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator%3A-java.rmi.UnknownHostException-tp22532865p22708379.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22532873</id>
	<title>EhCache data and query cache implementation for OpenJPA</title>
	<published>2009-03-12T12:46:58Z</published>
	<updated>2009-03-12T12:46:58Z</updated>
	<author>
		<name>candrews</name>
	</author>
	<content type="html">I have implemented an EhCache data and query cache implementation for
&lt;br&gt;OpenJPA based on the work of Pinaki Poddar, who created an OpenJPA data
&lt;br&gt;cache for Coherence. My code is available on my blog at
&lt;br&gt;&lt;a href=&quot;http://candrews.integralblue.com/2009/03/ehcache-implementation-of-openjpa-caching&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://candrews.integralblue.com/2009/03/ehcache-implementation-of-openjpa-caching&lt;/a&gt;&lt;br&gt;and is available under the APL 2.0 license.
&lt;br&gt;&lt;br&gt;I think this code belongs in OpenJPA, and I have submitted it for that
&lt;br&gt;project's review, but I would enjoy some input from the ehcache crew as
&lt;br&gt;well, and to raise awareness of this code, as I believe it would be useful
&lt;br&gt;to anyone who uses both EhCache and OpenJPA.
&lt;br&gt;&lt;br&gt;Thank you,
&lt;br&gt;~Craig
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
&lt;br&gt;powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
&lt;br&gt;easily build your RIAs with Flex Builder, the Eclipse(TM)based development
&lt;br&gt;software that enables intelligent coding and step-through debugging.
&lt;br&gt;Download the free 60 day trial. &lt;a href=&quot;http://p.sf.net/sfu/www-adobe-com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/www-adobe-com&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22532873&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/EhCache-data-and-query-cache-implementation-for-OpenJPA-tp22532873p22532873.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22532889</id>
	<title>EhCache data and query cache implementation for OpenJPA</title>
	<published>2009-03-12T12:46:54Z</published>
	<updated>2009-03-12T12:46:54Z</updated>
	<author>
		<name>candrews</name>
	</author>
	<content type="html">I have implemented an EhCache data and query cache implementation for
&lt;br&gt;OpenJPA based on the work of Pinaki Poddar, who created an OpenJPA data
&lt;br&gt;cache for Coherence. My code is available on my blog at
&lt;br&gt;&lt;a href=&quot;http://candrews.integralblue.com/2009/03/ehcache-implementation-of-openjpa-caching&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://candrews.integralblue.com/2009/03/ehcache-implementation-of-openjpa-caching&lt;/a&gt;&lt;br&gt;and is available under the APL 2.0 license.
&lt;br&gt;&lt;br&gt;I think this code belongs in OpenJPA, and I have submitted it for that
&lt;br&gt;project's review, but I would enjoy some input from the ehcache crew as
&lt;br&gt;well, and to raise awareness of this code, as I believe it would be useful
&lt;br&gt;to anyone who uses both EhCachea and OpenJPA.
&lt;br&gt;&lt;br&gt;Thank you,
&lt;br&gt;~Craig
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
&lt;br&gt;powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
&lt;br&gt;easily build your RIAs with Flex Builder, the Eclipse(TM)based development
&lt;br&gt;software that enables intelligent coding and step-through debugging.
&lt;br&gt;Download the free 60 day trial. &lt;a href=&quot;http://p.sf.net/sfu/www-adobe-com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/www-adobe-com&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22532889&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/EhCache-data-and-query-cache-implementation-for-OpenJPA-tp22532889p22532889.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22532865</id>
	<title>net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator: java.rmi.UnknownHostException</title>
	<published>2009-03-10T07:09:07Z</published>
	<updated>2009-03-10T07:09:07Z</updated>
	<author>
		<name>Nathan Good</name>
	</author>
	<content type="html">&lt;br&gt;I am attempting to set up a distributed cache between two servers and am getting an java.rmi.UnknownHostException (see stack trace in this e-mail). &amp;nbsp;I have verified that using the short name the host is not resolvable from server2 to server1, since they are in different domains. &amp;nbsp;However, I am using the FQDN in the configuration files and have even used the IP addresses in the configuration files on both servers with the same results. &amp;nbsp;It's as if the FQDN or IP address is being ignored and it's pulling the short name from somewhere.
&lt;br&gt;&lt;br&gt;ehcache 1.5.0, manual peer discovery, running inside JBoss 5.0.0.GA
&lt;br&gt;&lt;br&gt;The servers are NOT in each other's /etc/hosts file. &amp;nbsp;The FQDNs of the servers are resolvable from each other, but only when given as a FQDN.
&lt;br&gt;&lt;br&gt;I would really appreciate any suggestions anyone might have. &amp;nbsp;Thank you!
&lt;br&gt;&lt;br&gt;&lt;br&gt;server1.this.domain.example.com -&amp;gt; messages sent successfully to server2.that.domain.example.com
&lt;br&gt;server2.that.domain.example.com -&amp;gt; says server1.this.domain.example.com is unknown
&lt;br&gt;&lt;br&gt;Here is the stack trace from server2.that.domain.example.com:
&lt;br&gt;&lt;br&gt;2009-03-10 09:35:03,643 WARN &amp;nbsp;[net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator] (Replication Thread) Unable to send message to remote peer. &amp;nbsp;Message was: Unknown host: server1; nested exception is:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.net.UnknownHostException: server1
&lt;br&gt;java.rmi.UnknownHostException: Unknown host: server1; nested exception is:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; java.net.UnknownHostException: server1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:572)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.ehcache.distribution.RMICachePeer_Stub.send(Unknown Source)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.flushReplicationQueue(RMIAsynchronousCacheReplicator.java:309)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.replicationThreadMain(RMIAsynchronousCacheReplicator.java:122)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator.access$100(RMIAsynchronousCacheReplicator.java:55)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator$ReplicationThread.run(RMIAsynchronousCacheReplicator.java:368)
&lt;br&gt;Caused by: java.net.UnknownHostException: server1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:520)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.connect(Socket.java:470)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.&amp;lt;init&amp;gt;(Socket.java:367)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at java.net.Socket.&amp;lt;init&amp;gt;(Socket.java:180)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at net.sf.ehcache.distribution.ConfigurableRMIClientSocketFactory.createSocket(ConfigurableRMIClientSocketFactory.java:72)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ... 8 more
&lt;br&gt;&lt;br&gt;Here are the configuration files (I've changed the names of the server for security reasons):
&lt;br&gt;&lt;br&gt;server1.this.domain.example.com config:
&lt;br&gt;&lt;br&gt;&amp;lt;ehcache xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xsi:noNamespaceSchemaLocation=&amp;quot;ehcache.xsd&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;cacheManagerPeerProviderFactory class=
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties=&amp;quot;peerDiscovery=manual, rmiUrls=//server2.that.domain.com:40000/cache1|//server2.that.domain.com:40000/cache2 |//server2.that.domain.com:40000/cache3|//server2.that.domain.com:40000/cache4&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; propertySeparator=&amp;quot;,&amp;quot; /&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;cacheManagerPeerListenerFactory
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&amp;quot;net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties=&amp;quot;hostName=, port=40000, socketTimeoutMillis=2000&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;defaultCache
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxElementsInMemory=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eternal=&amp;quot;false&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToIdleSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToLiveSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; overflowToDisk=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskSpoolBufferSizeMB=&amp;quot;30&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxElementsOnDisk=&amp;quot;10000000&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskPersistent=&amp;quot;false&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskExpiryThreadIntervalSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memoryStoreEvictionPolicy=&amp;quot;LRU&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;cache name=&amp;quot;cache1&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxElementsInMemory=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxElementsOnDisk=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;eternal=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;overflowToDisk=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memoryStoreEvictionPolicy=&amp;quot;LRU&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;diskPersistent=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;cacheEventListenerFactory class=&amp;quot;com.ml.art.util.cache.ConfigurationEventListenerFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;cacheEventListenerFactory
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&amp;quot;net.sf.ehcache.distribution.RMICacheReplicatorFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties=&amp;quot;replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; replicateUpdatesViaCopy=true, replicateRemovals=true &amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/cache&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- ... rest of caches ... --&amp;gt;
&lt;br&gt;&amp;lt;/ehcache&amp;gt;
&lt;br&gt;&lt;br&gt;File from server2.that.domain.example.com:
&lt;br&gt;&lt;br&gt;&amp;lt;ehcache xmlns:xsi=&amp;quot;&lt;a href=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/a&gt;&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xsi:noNamespaceSchemaLocation=&amp;quot;ehcache.xsd&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;cacheManagerPeerProviderFactory class=
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot;net.sf.ehcache.distribution.RMICacheManagerPeerProviderFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties=&amp;quot;peerDiscovery=manual, rmiUrls=//server1.this.domain.com:40000/cache1|//server1.this.domain.com:40000/cache2 |//server1.this.domain.com:40000/cache3|//server1.this.domain.com:40000/cache4&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; propertySeparator=&amp;quot;,&amp;quot; /&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;cacheManagerPeerListenerFactory
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&amp;quot;net.sf.ehcache.distribution.RMICacheManagerPeerListenerFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties=&amp;quot;hostName=, port=40000, socketTimeoutMillis=2000&amp;quot;/&amp;gt;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;defaultCache
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxElementsInMemory=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eternal=&amp;quot;false&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToIdleSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timeToLiveSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; overflowToDisk=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskSpoolBufferSizeMB=&amp;quot;30&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; maxElementsOnDisk=&amp;quot;10000000&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskPersistent=&amp;quot;false&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; diskExpiryThreadIntervalSeconds=&amp;quot;120&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; memoryStoreEvictionPolicy=&amp;quot;LRU&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;cache name=&amp;quot;cache1&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxElementsInMemory=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxElementsOnDisk=&amp;quot;10000&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;eternal=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;overflowToDisk=&amp;quot;true&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;memoryStoreEvictionPolicy=&amp;quot;LRU&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;diskPersistent=&amp;quot;true&amp;quot;&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;cacheEventListenerFactory class=&amp;quot;com.ml.art.util.cache.ConfigurationEventListenerFactory&amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;cacheEventListenerFactory
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; class=&amp;quot;net.sf.ehcache.distribution.RMICacheReplicatorFactory&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties=&amp;quot;replicateAsynchronously=true, replicatePuts=true, replicateUpdates=true,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; replicateUpdatesViaCopy=true, replicateRemovals=true &amp;quot;/&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/cache&amp;gt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;!-- ... rest of caches ... --&amp;gt;
&lt;br&gt;&amp;lt;/ehcache&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
&lt;br&gt;powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
&lt;br&gt;easily build your RIAs with Flex Builder, the Eclipse(TM)based development
&lt;br&gt;software that enables intelligent coding and step-through debugging.
&lt;br&gt;Download the free 60 day trial. &lt;a href=&quot;http://p.sf.net/sfu/www-adobe-com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/www-adobe-com&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22532865&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/net.sf.ehcache.distribution.RMIAsynchronousCacheReplicator%3A-java.rmi.UnknownHostException-tp22532865p22532865.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22532863</id>
	<title>Max Capacity for EhCache</title>
	<published>2009-03-02T15:28:51Z</published>
	<updated>2009-03-02T15:28:51Z</updated>
	<author>
		<name>Ed_</name>
	</author>
	<content type="html">&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body class='hmmessage'&gt;
&lt;br&gt;How big can the cache get in terms of # of entries in memory (not on disk) &lt;br&gt;&lt;br&gt;Does Ehcache perform well with 2 to 4 million objects in memory ( essentially like a concurrent hashmap )&lt;br&gt;&lt;br&gt;thanks,&lt;br&gt;&lt;br&gt;Ed&lt;br&gt;&lt;br /&gt;&lt;hr /&gt;Windows Live™ Contacts: Organize your contact list.  &lt;a href='http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009' target='_new' rel=&quot;nofollow&quot;&gt;Check it out.&lt;/a&gt;&lt;/body&gt;
&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
&lt;br&gt;powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
&lt;br&gt;easily build your RIAs with Flex Builder, the Eclipse(TM)based development
&lt;br&gt;software that enables intelligent coding and step-through debugging.
&lt;br&gt;Download the free 60 day trial. &lt;a href=&quot;http://p.sf.net/sfu/www-adobe-com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/www-adobe-com&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22532863&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Max-Capacity-for-EhCache-tp22532863p22532863.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22532868</id>
	<title>Write Through Cache ( ? )</title>
	<published>2009-03-02T06:45:23Z</published>
	<updated>2009-03-02T06:45:23Z</updated>
	<author>
		<name>jsmatos sou eu</name>
	</author>
	<content type="html">Hi,&lt;br&gt;I&amp;#39;m using EHCache to build a distributed Cache that needs to persist its data at all costs during its time of validity.&lt;br&gt;Is there any way to make something like a Write Through Cache by configuration?&lt;br&gt;&lt;br&gt;Thanks in an advance,&lt;br&gt;
Jorge Matos&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
&lt;br&gt;powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
&lt;br&gt;easily build your RIAs with Flex Builder, the Eclipse(TM)based development
&lt;br&gt;software that enables intelligent coding and step-through debugging.
&lt;br&gt;Download the free 60 day trial. &lt;a href=&quot;http://p.sf.net/sfu/www-adobe-com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/www-adobe-com&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22532868&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Write-Through-Cache-%28---%29-tp22532868p22532868.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22532883</id>
	<title>Write Through Cache ( ? )</title>
	<published>2009-03-02T02:58:35Z</published>
	<updated>2009-03-02T02:58:35Z</updated>
	<author>
		<name>jmatos</name>
	</author>
	<content type="html">&lt;br&gt;Hi,
&lt;br&gt;I'm using EHCache to build a distributed Cache that needs to persist its
&lt;br&gt;data at all costs during its time of validity.
&lt;br&gt;Is there any way to make something like a Write Through Cache by
&lt;br&gt;configuration?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks in an advance,
&lt;br&gt;Jorge Matos
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
&lt;br&gt;powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
&lt;br&gt;easily build your RIAs with Flex Builder, the Eclipse(TM)based development
&lt;br&gt;software that enables intelligent coding and step-through debugging.
&lt;br&gt;Download the free 60 day trial. &lt;a href=&quot;http://p.sf.net/sfu/www-adobe-com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/www-adobe-com&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22532883&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Write-Through-Cache-%28---%29-tp22532883p22532883.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22532871</id>
	<title>Cache with Disk Copy</title>
	<published>2009-02-27T06:27:28Z</published>
	<updated>2009-02-27T06:27:28Z</updated>
	<author>
		<name>Carlos Lopes-3</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm using EHCache to build a distributed Cache for a somewhat critical &amp;nbsp;
&lt;br&gt;software that needs to persist its data at all costs during its time &amp;nbsp;
&lt;br&gt;of validity.
&lt;br&gt;Is there any way to make something like a WriteThrough Cache by &amp;nbsp;
&lt;br&gt;configuration?
&lt;br&gt;&lt;br&gt;I was able to get a WriteThrough Cache making an EventListener that &amp;nbsp;
&lt;br&gt;makes puts of the New or Updated Elements directly to the DiskStore.
&lt;br&gt;Will this drop to much the Cache performance? Are this elements &amp;nbsp;
&lt;br&gt;persisted to disk synchronously during the Puts or asynchronously by a &amp;nbsp;
&lt;br&gt;working thread?
&lt;br&gt;&lt;br&gt;Thanks in an advance,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Carlos Lopes.
&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
&lt;br&gt;powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
&lt;br&gt;easily build your RIAs with Flex Builder, the Eclipse(TM)based development
&lt;br&gt;software that enables intelligent coding and step-through debugging.
&lt;br&gt;Download the free 60 day trial. &lt;a href=&quot;http://p.sf.net/sfu/www-adobe-com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/www-adobe-com&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22532871&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Cache-with-Disk-Copy-tp22532871p22532871.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22532886</id>
	<title>PageCachingFilter caches cookies and should not</title>
	<published>2009-02-23T09:59:15Z</published>
	<updated>2009-02-23T09:59:15Z</updated>
	<author>
		<name>candrews</name>
	</author>
	<content type="html">I can't think of any situation where caching cookies is a good idea.
&lt;br&gt;Cookies are usually personalized to the requester, and contain things like
&lt;br&gt;a unique user id.
&lt;br&gt;&lt;br&gt;In my current project, the PageCachingFilter's persistence of cookies lead
&lt;br&gt;to an interesting case where one user would get another users' data. I
&lt;br&gt;assume more implementers of this filter will run into this problem.
&lt;br&gt;&lt;br&gt;Can you change PageCachingFilter to not include cookies in its cache?
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;https://sourceforge.net/tracker2/?func=detail&amp;aid=2630970&amp;group_id=93232&amp;atid=603559&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://sourceforge.net/tracker2/?func=detail&amp;aid=2630970&amp;group_id=93232&amp;atid=603559&lt;/a&gt;&lt;br&gt;&lt;br&gt;Thank you!
&lt;br&gt;~Craig
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
&lt;br&gt;powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
&lt;br&gt;easily build your RIAs with Flex Builder, the Eclipse(TM)based development
&lt;br&gt;software that enables intelligent coding and step-through debugging.
&lt;br&gt;Download the free 60 day trial. &lt;a href=&quot;http://p.sf.net/sfu/www-adobe-com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/www-adobe-com&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22532886&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PageCachingFilter-caches-cookies-and-should-not-tp22532886p22532886.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22532881</id>
	<title>Expired Elements and Garbage Collection</title>
	<published>2009-02-20T15:11:26Z</published>
	<updated>2009-02-20T15:11:26Z</updated>
	<author>
		<name>Erwin Cabral</name>
	</author>
	<content type="html">Hi,&lt;br&gt;&lt;br&gt;I have been profiling my application and was wondering if the expired elements in the cache are eligible for garbage collection. If not, is it advisable to force programmatically evict the elements so that they would be eligible for GC?&lt;br&gt;
&lt;br&gt;Thanks.&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
&lt;br&gt;powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
&lt;br&gt;easily build your RIAs with Flex Builder, the Eclipse(TM)based development
&lt;br&gt;software that enables intelligent coding and step-through debugging.
&lt;br&gt;Download the free 60 day trial. &lt;a href=&quot;http://p.sf.net/sfu/www-adobe-com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/www-adobe-com&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22532881&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Expired-Elements-and-Garbage-Collection-tp22532881p22532881.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22532864</id>
	<title>Re: ehcache 1.6 release</title>
	<published>2009-02-18T12:50:49Z</published>
	<updated>2009-02-18T12:50:49Z</updated>
	<author>
		<name>gregluck</name>
	</author>
	<content type="html">&lt;html&gt;&lt;body style=&quot;word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; &quot;&gt;John&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;1.5 was primarily a maintenance release.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;1.6 is pretty much a restructure, with breakout of code into different modules, dropping all dependencies for the core and relying on Java 1.5, and changes to support major new features such as the cache server and JMS replication. There have been very few changes to the core actually.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I would stick with 1.5.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I am working on a major performance increase for systems with very large numbers of threads to cope with future expected usage. This necessarily requires a large change to the way synchronization works, so there will definitely be at least another beta release to allow testing of this change.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div apple-content-edited=&quot;true&quot;&gt; &lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; &quot;&gt;&lt;div style=&quot;word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; &quot;&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px&quot;&gt;&lt;font face=&quot;Helvetica&quot; size=&quot;3&quot; style=&quot;font: 12.0px Helvetica&quot;&gt;Regards&lt;/font&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px&quot;&gt;&lt;br&gt;&lt;/p&gt;&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px&quot;&gt;&lt;font face=&quot;Helvetica&quot; size=&quot;3&quot; style=&quot;font: 12.0px Helvetica&quot;&gt;Greg Luck&lt;/font&gt;&lt;/p&gt;&lt;div&gt;&lt;br class=&quot;khtml-block-placeholder&quot;&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;web: &lt;a href=&quot;http://gregluck.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://gregluck.com&lt;/a&gt;&lt;/div&gt;&lt;div&gt;skype: gregrluck&lt;div&gt;yahoo: gregrluck&lt;/div&gt;mobile:&amp;nbsp;+61 408 061 622&lt;/div&gt;&lt;div&gt;&lt;br class=&quot;khtml-block-placeholder&quot;&gt;&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/span&gt; &lt;/div&gt;&lt;br&gt;&lt;div&gt;&lt;div&gt;On 19/02/2009, at 12:07 AM, John Cout wrote:&lt;/div&gt;&lt;br class=&quot;Apple-interchange-newline&quot;&gt;&lt;blockquote type=&quot;cite&quot;&gt;&lt;div&gt;&lt;br&gt;Hi Greg,&lt;br&gt;&lt;br&gt;Grey we are looking into using ehcache as a caching solution. Currently we have been testing using version 1.6 beta 3. However, there is a concern that we should fall back to a released version i.e 1.5. Based on previous releases it appears that the 1.6 release (after beta 3) should be within the month. We are looking at starting development in March.&lt;br&gt;&lt;br&gt;Do you have an anticipated release date of 1.6 ?&lt;br&gt;Is there any outstanding reason to use 1.6 over 1.5 ?&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;John&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
&lt;br&gt;powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
&lt;br&gt;easily build your RIAs with Flex Builder, the Eclipse(TM)based development
&lt;br&gt;software that enables intelligent coding and step-through debugging.
&lt;br&gt;Download the free 60 day trial. &lt;a href=&quot;http://p.sf.net/sfu/www-adobe-com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/www-adobe-com&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22532864&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-ehcache-1.6-release-tp22532864p22532864.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-22532895</id>
	<title>java.net.MalformedURLException: invalid character, '#', in URL name</title>
	<published>2009-02-17T07:29:01Z</published>
	<updated>2009-02-17T07:29:01Z</updated>
	<author>
		<name>Ray Auge</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 TRANSITIONAL//EN&quot;&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
  &lt;META HTTP-EQUIV=&quot;Content-Type&quot; CONTENT=&quot;text/html; CHARSET=UTF-8&quot;&gt;
  &lt;META NAME=&quot;GENERATOR&quot; CONTENT=&quot;GtkHTML/3.24.1.1&quot;&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
We recently upgraded to ehcache 1.5.0 and are now getting this error on starting with cluster config:&lt;BR&gt;
&lt;BR&gt;
&lt;BR&gt;
&lt;PRE&gt;
SEVERE: Servlet&amp;nbsp; threw load() exception
java.net.MalformedURLException: invalid character, '#', in URL name: //192.168.0.249:37042/com.liferay.portal.kernel.dao.orm.FinderCache#com.liferay.portal.model.Company
	at java.rmi.Naming.parseURL(Naming.java:222)
	at java.rmi.Naming.rebind(Naming.java:154)
	at net.sf.ehcache.distribution.RMICacheManagerPeerListener.bind(RMICacheManagerPeerListener.java:230)
	at net.sf.ehcache.distribution.RMICacheManagerPeerListener.notifyCacheAdded(RMICacheManagerPeerListener.java:511)
	at net.sf.ehcache.event.CacheManagerEventListenerRegistry.notifyCacheAdded(CacheManagerEventListenerRegistry.java:156)
	at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:720)
	at net.sf.ehcache.CacheManager.addCache(CacheManager.java:697)
	at net.sf.ehcache.CacheManager.addCache(CacheManager.java:634)
	at com.liferay.portal.cache.EhcachePortalCacheManager.getCache(EhcachePortalCacheManager.java:75)
	at com.liferay.portal.cache.MultiVMPoolImpl.getCache(MultiVMPoolImpl.java:61)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...
&lt;/PRE&gt;
&lt;BR&gt;
Anyone ever seen this before?&lt;BR&gt;
&lt;BR&gt;
Ray&lt;BR&gt;
&lt;BR&gt;
&lt;/BODY&gt;
&lt;/HTML&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
&lt;br&gt;powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
&lt;br&gt;easily build your RIAs with Flex Builder, the Eclipse(TM)based development
&lt;br&gt;software that enables intelligent coding and step-through debugging.
&lt;br&gt;Download the free 60 day trial. &lt;a href=&quot;http://p.sf.net/sfu/www-adobe-com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/www-adobe-com&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;ehcache-list mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=22532895&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;ehcache-list@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/ehcache-list&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/ehcache-list&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/java.net.MalformedURLException%3A-invalid-character%2C-%27-%27%2C-in-URL-name-tp22532895p22532895.html" />
</entry>

</feed>
