A JBoss Datagrid can be accessed in two ways. In the following section, we will explore cache management with Jboss datagrid in both Library and Client-Server topologies.
Working with caches
Library mode in Java SE
In Java SE, Infinispan can be used as a simple jar dependency in your project. Some applications in the BeosBank landscape may want to keep the results of the MoneyTransfer GetById operation in an Infinispan/JBoss Data Grid cache to improve their performance.
How can this be implemented using JBoss Datagrid? While calling the web service, applications can receive output similar to the following:
<?xml version="1.0" encoding="UTF-8" ?>
<MoneyTransferStream>
<moneytransfer>
<...