[JBoss-dev] [JBossCache] - problem with bdbje-cacheloader
following the cacheloader tutorial in section 10.2. Replicated cache with shared datastore i try to use the BdbjeCacheLoader instead of the FileCacheLoader as follows: org.jboss.cache.loader.bdbje.BdbjeCacheLoader location=c:\\tmp\\bdbje I receive the following error if I trying to run the second process. ( both process are on the sam machine ) - With filecacheloader it works. the stack dump com.sleepycat.je.log.LogException: A je..lckfile exists in c:\tmp\bdbje The environment can not be locked for single writer access. at com.sleepycat.je.log.FileManager.lockEnvironment(FileManager.java:941) at com.sleepycat.je.log.FileManager.(FileManager.java:137) at com.sleepycat.je.dbi.EnvironmentImpl.(EnvironmentImpl.java:168) at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:65) at com.sleepycat.je.Environment.(Environment.java:79) at org.jboss.cache.loader.bdbje.BdbjeCacheLoader.start(BdbjeCacheLoader.java:12 7) at org.jboss.cache.TreeCache.startCacheLoader(TreeCache.java:1444) at org.jboss.cache.TreeCache.startService(TreeCache.java:1109) at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport. java:272) at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:173) at org.jboss.cache.TreeCacheView2.main(TreeCacheView2.java:123) ? are any additional setting required or just not allowed?. Any help is appreciated. Cheers robitop. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868709#3868709 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868709 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - Re: problem with bdbje-cacheloader
Thank you, for this answer, though I am confused sleepycat advertices bdbje as " The architecture of Berkeley DB JE supports high performance and concurrency for both read-intensive and write-intensive workloads. Berkeley DB JE is available with the following feature sets to meet your application's needs. Berkeley DB JE Concurrent Data Store Multiple writers and readers. " would just be fantastic if it worked. cheers robitop View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3868985#3868985 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3868985 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development
[JBoss-dev] [JBossCache] - Re: problem with bdbje-cacheloader
I asked sleepycat about the concurrency issues and got this reply -- Provides bdbje concurrent access? what's the deal? > First let me explain the capabilities of JE itself, independently of JBossCache. For a given database environment, a single process may open that environment for write access at one time. Within than process, any number of threads may read and write concurrently. JE supports record locking and highly concurrent read and write access via multiple threads in a single process. I am not a JBossCache expert, so please take the following with a grain of salt and check with JBoss support for details. With JBossCache, I believe that multiple processes can be configured to share a single cache via replication. If you configure only one of those processes to be persistent, using JE as the persistence store, then I think the entire shared cache will be persistent. I'm not sure how this is configured, and as I say you'll need to check with JBoss support. But this type of configuration may be what you're looking for. --- Which actually says no concurrency with different processes. and *one* writer only. Actually in the dbdje docs there are some remarks. That it is possible to open a database for read , close it open it for write .., but this is painful cheers robitop View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3869171#3869171 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3869171 --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development