tracker issue : CF-4051715

select a category, or use search below
(searches all categories and all time range)
Title:

Hibernate Leve 2 cache not configurable to any provider other than EHCache

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Fabrice Reynolds / Fabrice Reynolds (Fabrice Reynolds)

Created: 09/08/2015

Components: Documentation

Versions: 11.0

Failure Type: Non Functioning

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / All users will encounter

Locale/System: ALL / Windows 10 64 bit

Vote Count: 4

Listed in the version 2016.0.0.297996 Issues Fixed doc
Problem Description:
Coldfusion 11 uses Hibernate 4 in which CacheProviders are depreciated in favor of RegionFactory. CF11 does not provide a mechanism to specify a RegionFactory or even specify a cache provider other than EHCache. Any string other than EHCache will throw an error. 

This means that it is not possible to implement any second level other than the EHCache that ships with ColdFusion 11! The way that RegionFactory implementation seems a bit of a hack.

Steps to Reproduce:
Create a basic application with ORM enabled. Set the ormsettings.secondarycacheenabled to true and change the ormsettings.cacheprovider to be anything other than EHCache, for example Hashtable or fully qualified path to a RegionFactory class.

 
Actual Result:
An exception is thrown:

Detail	Supported cache provider is EhCache.
Message	Cache Provider Hashtable is not supported.

Expected Result:
Either set the ormsettings.cacheProvider to one of the documented (https://wikidocs.adobe.com/wiki/display/coldfusionen/ORM+settings) providers or a fully qualified Fully name of the class for any other cache provider.

Any Workaround
none at present

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	4051715

External Customer Info:
External Company:  
External Customer Name: Fabrice Reynolds
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

  1. September 08, 2015 00:00:00: 1_CF11-Hibernate-Provider-Stace-Trace.txt

Comments:

This prevents us from using Couchbase/Memcached as our L2 cache provider, thus preventing us from upgrading to CF11 from CF9.1
Vote by External U.
5953 | September 14, 2015 08:44:45 AM GMT
This is huge for several of our clients who use Couchbase for 2nd level cache via existing memcached providers. I'd love to see a way to do this again. Here's a guide I wrote that works for CF9 and 10. https://www.ortussolutions.com/blog/couchbase-secondary-orm-configuration-setup
Vote by External U.
5954 | September 15, 2015 08:32:01 AM GMT
We are looking to implement L2 ORM caching with an existing couchbase setup to increase the performance of our applications running on CF 11
Vote by External U.
5955 | September 18, 2015 05:36:42 AM GMT
I want to use Couchbase as a secondary level cache provider for ORM
Vote by External U.
5956 | September 18, 2015 06:10:10 AM GMT
We are investigating this for Raijin.
Comment by Himavanth R.
5948 | October 22, 2015 11:55:11 PM GMT
And how is that investigation going? CF2016 is *well* into development now...
Comment by External U.
5949 | January 05, 2016 08:06:12 AM GMT
This issue is fixed. The fix for this issue will be available as part of next major release of ColdFusion
Comment by Nimit S.
5950 | January 25, 2016 07:35:06 AM GMT
Can you provide details of the fix please?
Comment by External U.
5951 | January 25, 2016 08:42:51 AM GMT
Will this fix also be back ported to CF11 as this affects current installations and customers? Also to confirm that the fix is to allow third party Hibernate L2 caching such as Couchebase to use RegionFactory instead of CacheProviders?
Comment by External U.
5952 | January 25, 2016 08:57:17 AM GMT