I am attempting to use commit-option D for my enity beans. I have not been able to find the configuration that will achieve the caching I want. I am expecting the Entity Bean to be cached for 180 seconds and then refresh from the db. Instead, when I update the db through an external program, the change is reflected immediatly.
I have included my jboss.xml file below. Any suggestions would be great.
Thanks. Jeff
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS//EN" "http://www.jboss.org/j2ee/dtd/jboss.dtd">
<container-configurations>
<container-configuration extends="Standard CMP 2.x EntityBean">
<container-name>Cached CMP</container-name>
<commit-option>D</commit-option>
<optiond-refresh-rate>180</optiond-refresh-rate>
</container-configuration>
</container-configurations>
<enterprise-beans>
<!-- PartEJB -->
<ejb-name>ParticipantEJB</ejb-name>
<configuration-name>Cached CMP</configuration-name>
<local-jndi-name>app/PartEJB</local-jndi-name>