I checked for a bit after I posted this and didn't see any responses. So, I promptly forgot about it..... Thank you for your thoughts. I am still battling this problem having tried a million different ideas including the one you suggested. I will look into Hibernate and see if anything there jumps out at me. This did work when we used ehcache 2.x; the problem came up when we upgraded to 3.x. I can see that with the 2.x version all of the caches were being created "spontaneously' but I guess the default configuration that was used worked the way we wanted it to. Lucky. But with 3.x the behavior is different. I can see that the caches I have configured are being created, ie '
[EhcacheManager [] main] Cache 'com.teramedica.config.entity.TMStoragePoolConfig' created in EhcacheManager.'
The hibernate properties are still the same but here is the configuration I am now using:
<config
xsi:schemaLocation="
<service>
<jsr107:defaults enable-management="false" enable-statistics="true"/>
</service>
<cache-template name="defaultCacheTemplate">
<expiry>
<ttl unit="seconds">10</ttl>
</expiry>
<resources>
<heap unit="entries">1000</heap>
</resources>
</cache-template>
<cache alias="com.teramedica.config.entity.TMDicomServerIdentifierConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMDicomServerPresSyntaxConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMJobManagerConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMOrganizationConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMStoragePolicyConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMStoragePoolConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMStoragePolicyViewConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMUIConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMDiagnosticConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMNotificationBroadcasterConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMCodeConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMContentSourceConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMHL7MetricsConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMNotificationPolicyConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMRuleSetConfig'" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMAffinityDomainConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMDicomListenerConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMRuleConditionConfig" uses-template="defaultCacheTemplate"/>
<cache alias="com.teramedica.config.entity.TMEmailPropertiesConfig" uses-template="defaultCacheTemplate"/>
</config>
thanks again for your time and knowledge. Much appreciated.