JBoss.orgCommunity Documentation
Out-of-the-box, Overlord S-RAMP provides a useful, default server configuration. However, if you’d like to mold it into an existing setup, here are a few areas that can be modified.
By default, S-RAMP uses a simple file-based H2 datasource. However, any existing datasource can be used. Swap-out the datasource’s JNDI name in the following locations, based on your platform:
...
<cache-container name="modeshape">
<local-cache name="sramp">
<locking isolation="NONE"/>
<transaction mode="NON_XA"/>
<string-keyed-jdbc-store purge="false" passivation="false" datasource="[DATASOURCE JNDI NAME]">
<string-keyed-table prefix="ispn_bucket">
<id-column type="VARCHAR(500)" name="id"/>
<data-column type="VARBINARY(60000)" name="datum"/>
<timestamp-column type="BIGINT" name="version"/>
</string-keyed-table>
</string-keyed-jdbc-store>
</local-cache>
</cache-container>
...
TOMCAT_HOME/conf/sramp-modeshape.json:
...
},"storage": {
"cacheName": "sramp",
"cacheConfiguration" : "infinispan-configuration-webapp.xml",
"binaryStorage": {
"type" : "database",
"dataSourceJndiName" : "[DATASOURCE JNDI NAME]",
"minimumBinarySizeInBytes" : "${application.min.binary.size:4096}"
}
},
...
JETTY_HOME/etc/sramp-modeshape.json:
...
},"storage": {
"cacheName": "sramp",
"cacheConfiguration" : "infinispan-configuration-webapp.xml",
"binaryStorage": {
"type" : "database",
"dataSourceJndiName" : "[DATASOURCE JNDI NAME]",
"minimumBinarySizeInBytes" : "${application.min.binary.size:4096}"
}
},
...
...
},"storage": {
"cacheName": "sramp",
"cacheConfiguration" : "infinispan-configuration-webapp.xml",
"binaryStorage": {
"type" : "database",
"dataSourceJndiName" : "osgi:service/javax.sql.DataSource/(osgi.jndi.service.name=[DATASOURCE JNDI NAME])",
"minimumBinarySizeInBytes" : "${application.min.binary.size:4096}"
}
},
...