Cache advanced usages
Datagrid provides a set of features to facilitate cache usage within applications: REST API, Programmatic, and XML configuration.
REST API
JBoss Datagrid provides users with a REST API to interact with cache objects. This feature is available on the /rest
context and exposes each cache resource through SERVER:PORT/rest/${CacheName}
. By default, the rest-connector
is protected. Edit the clustered.xml
file to temporarily disable the security configuration on the REST connector:
$cd jboss-datagrid-7.0.0-server/Africa <rest-connector socket-binding="rest" cache-container="clustered" security-domain="other" auth-method="BASIC"/> <rest-connector socket-binding="rest" cache-container="clustered" />
Start the first grid server and connect to the administration console using the JBoss Data Grid CLI:
$cd jboss-datagrid-7.0.0-server/bin $./standalone.sh -c=clustered.xml -bmanagement=127.0.0.1 -b=127.0.0.1 -Djboss.node.name=BeosBankCacheAfrica -Djboss.server.base.dir=Africa...