- 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.
- Maven
- Download and extract Liberty 16.0.0.3
-
Clone
bundle
branch of the modified version of Hazelcast library:git clone -b bundle https://github.com/emre-aydin/hazelcast.git
-
Install the modified version of Hazelcast into local Maven repository. Execute the following in
hazelcast
project root directory:mvn clean install -DskipTests=true
-
Clone this GitHub repository:
git clone https://github.com/hazelcast/hazelcast-dynacache.git
-
Execute
mvn clean package
onhazelcast-dynacache
root directory to create the.esa
file
Install the .esa
file by executing the following command:
<liberty dir>/bin/featureManager install hazelcast-dynacache/hazelcast-dynacache/target/hazelcast-dynacache-0.2.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-3.8-BUNDLE.jar
- hazelcast-client-3.8-BUNDLE.jar
- hazelcast-dynacache-bundle-0.2.jar
Use com.hazelcast.ibm.dynacache.CacheProviderImpl
as your cache provider name in your cacheinstances.properties
file.