You need to set up jboss.xml <container-configurations> something as
follows. Check the ejb spec for the
<commit-option>B</commit-option>
There are three levels A, B, and C. This covers the dirty read stuff etc
<?xml version="1.0" encoding="Cp1252"?>
<jboss>
<secure>true</secure>
<container-configurations>
<container-configuration
configuration-class="org.jboss.ejb.deployment.EntityContainerConfiguration">
<container-name>Isolation</container-name>
<call-logging>false</call-logging>
<container-invoker>org.jboss.ejb.plugins.jrmp12.server.JRMPContainerInvoker<
/container-invoker>
<instance-pool>org.jboss.ejb.plugins.EntityInstancePool</instance-pool>
<instance-cache>org.jboss.ejb.plugins.EntityInstanceCache</instance-cache>
<persistence-manager>org.jboss.ejb.plugins.BMPPersistenceManager</persistenc
e-manager>
<transaction-manager></transaction-manager>
<authentication-module></authentication-module>
<role-mapping-manager></role-mapping-manager>
<container-invoker-conf>
<Optimized>false</Optimized>
</container-invoker-conf>
<container-cache-conf>
<cache-policy>org.jboss.ejb.plugins.NoPassivationCachePolicy</cache-policy>
</container-cache-conf>
<container-pool-conf>
<MaximumSize>100</MaximumSize>
<MinimumSize>10</MinimumSize>
</container-pool-conf>
<commit-option>B</commit-option>
</container-configuration>
</container-configurations>
<resource-managers>
<resource-manager res-class="org.jboss.ejb.deployment.JDBCResource">
<res-name>jdbc/UniteItDB</res-name>
<res-jndi-name>UniteItDataSource</res-jndi-name>
</resource-manager>
</resource-managers>
<enterprise-beans>
<session>
<ejb-name>Customer</ejb-name>
<jndi-name>trader/Customer</jndi-name>
<configuration-name>Isolation</configuration-name>
<resource-ref>
<res-ref-name>jdbc/UniteItDB</res-ref-name>
<resource-name>jdbc/UniteItDB</resource-name>
</resource-ref>
</session>
> -----Original Message-----
> From: Sundar Rajan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 18, 2001 3:02 PM
> To: [EMAIL PROTECTED]
> Subject: [jBoss-User] Refreshing the cache
>
>
> How does EJBs maintain its data synchronized with the
> database? How can
> I refesh the data if updates to the database are done outside
> of the ejb
> context (say using some client server tools). I do see at
> some point in
> time they do get refreshed, but if I want to see the changes
> immediately
> after updating the database, how can I force the EJBs to load itself
> again?
>
> Thanks
> Sundar
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]