This feature is only available in NCache Enterprise.
For Java, before deploying your JAR files, you need to make sure that:
- You have JDK 17 installed.
- Your Environment Variable for Java Home is set.
NCache allows you to deploy assemblies over the server for server-side features like Backing Source, Entry Processor, MapReduce, Cache Loader/Refresher, or Custom Dependency providers. Once the user deploys provider assemblies through the NCache Management Center or any Command Line Tools from the specified path, the assemblies are also copied to the newly created folder named after the cache name in the deploy folder of the NCache installation directory. Similarly, Java-based providers can also be deployed using both the NCache Management Center and any Command Line Tools.
Using the NCache Management Center
Launch the NCache Management Center by browsing to http://localhost:8251 or
<server-ip>:8251for Windows and Linux.
In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache required.
Check the box against the cache on which assemblies are to be deployed.
Click on "..." against the cache and select Deploy Providers.
NCache opens the File Explorer to let the user select the assemblies to be deployed.
The same assembly is now present in the newly created deploy folder in the NCache installation directory.
Using Command Line Tools
The install-ncachemodule tool enables the user to deploy provider assemblies from the specified assembly path to the deployment folder named 'deploy' in the NCache installation directory. You can also deploy jars through this tool and if you specify a folder path, it will copy all its content to the deploy folder.
This command deploys the assembly Provider.jar over a cache named demoClusteredCache.
install-ncachemodule -cachename demoClusteredCache -assemblypath "/user/Provider.jar"