[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
EhCache singleon issue
- To: openldap-fortress@openldap.org
- Subject: EhCache singleon issue
- From: Emmanuel LÃcharny <elecharny@gmail.com>
- Date: Thu, 30 May 2013 12:12:34 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :x-enigmail-version:content-type:content-transfer-encoding; bh=LjeS0susinxyMO7DBO+F/EJ0P9E5qoMcb8bntoYT4xI=; b=sqXLCIYePFAgA6gybznF6bNQt4O9Tg86TLbF5s2LsljvOiUPNNi1JWCGx3QqvHWBrN /wOa4OJiGmXBl20IzhbDvVF4pVuZHVMKzXWnCwYpRjdjLrn8fOrLA4/oiJG6b+Cevm9a poRbE/iFjAb/CgBLwfuEqCzYEMd/OymcNQf6Eq+M4HMHpRy0bRwhwepaZTsdttwuxmSK 7C54veZpRE1WdZBzJKN41yajNYuXkSGefiDYYvun2/WfHyHzZHMSkIIjY7HTD8QCUJ6d 8A0ORewhJuo5yoDXQk1vTFJoonPnS1U7GuvZIOw1/uOkI5QD5Ke/t0QFD6baBksPUe44 GmcQ==
- User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130509 Thunderbird/17.0.6
Hi,
yesterday, I spent a couple of hours trying to understand why I get a
failure in the tests. I finally found the pb : the EhCache CacheManager
is initialized using a factory, and the configuration file does not have
a name, which leads the cache to be a singleton. If you are embedding
fortress into another application using EhCache, or if Fortress embed an
application using EhCache, it's very likely that you face some issue if
this cache is also a singleton.
Bottom line, I added a name="fortress" in the ehcache.xml file, and this
solved my pb :
<?xml version="1.0" encoding="UTF-8"?>
<!--
Fortress CacheManager Configuration
==========================
This ehcache.xml corresponds to a single CacheManager.
-->
<ehcache name="fortress"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
^^^^^^^^
--
Regards,
Cordialement,
Emmanuel LÃcharny
www.iktek.com