- Hazelcast DynaCache
- Requirements
- Creating Development Environment
- Installing Hazelcast DynaCache to Liberty
- Enabling Hazelcast DynaCache
This repository contains Hazelcast DynaCache feature for Liberty Profile. In Liberty WAS, you can use dynamic cache engine (which is the default) in order to cache your data. With this feature, you can use Hazelcast as cache provider.
Tested with Liberty 16.0.0.3.
- Maven
- Download and extract Liberty 16.0.0.3
-
Clone this GitHub repository:
git clone https://github.com/hazelcast/hazelcast-dynacache.git -
Execute
mvn clean packageonhazelcast-dynacacheroot directory to create the.esafile
Install the .esa file by executing the following command:
<liberty dir>/bin/featureManager install hazelcast-dynacache/hazelcast-dynacache/target/hazelcast-dynacache-0.3.esa
Use hazelcast as your cache provider name in your cacheinstances.properties file.
Enable Hazelcast DynaCache by adding the following snippet to your server.xml file:
<featureManager>
<feature>usr:hazelcast-dynacache</feature>
</featureManager>
Apply the iFix
under twas-ifix directory to your WebSphere server and put the following files under WAS_HOME/lib/ext:
- hazelcast-all-3.11.jar
- hazelcast-dynacache-bundle-0.3.jar
Use com.hazelcast.ibm.dynacache.CacheProviderImpl as your cache provider name in your cacheinstances.properties file.