I am using the jboss data grid, when I restart the jboss datagrid server, then all data gets removed automatically, Please tell me how to make it persistent.
You should start with the Getting started guide. You will find several simple examples how the configuration and access look like.
The examples use often the H2 database which you might replace with a different DB.
Retrieving data ...