[jboss-user] [JBossCache] - CacheLoader is not notified when a POJO is modified
dmary
do-not-reply at jboss.com
Mon Dec 3 09:24:43 EST 2007
Hi all,
I've got a problem with JDBCCacheLoader, as when i change some datas from a POJO, these changes are not reflected on the datastore used (an mysql database)
Here is my config :
<?xml version="1.0" encoding="UTF-8"?>
| <server>
|
|
| <mbean code="org.jboss.cache.aop.PojoCache"
| name="jboss.cache:service=MyPojoCache">
| <depends>jboss:service=Naming</depends>
| <depends>jboss:service=TransactionManager</depends>
|
|
| <attribute name="TransactionManagerLookupClass">
| org.jboss.cache.JBossTransactionManagerLookup
| </attribute>
| <attribute name="NodeLockingScheme">OPTIMISTIC</attribute>
| <attribute name="IsolationLevel">REPEATABLE_READ</attribute>
| <attribute name="CacheMode">LOCAL</attribute>
| <attribute name="InitialStateRetrievalTimeout">5000</attribute>
| <attribute name="SyncReplTimeout">10000</attribute>
|
| <attribute name="LockAcquisitionTimeout">15000</attribute>
|
| <attribute name="EvictionPolicyClass">org.jboss.cache.aop.eviction.AopLRUPolicy</attribute>
|
|
| <attribute name="EvictionPolicyConfig">
| <config>
| <attribute name="wakeUpIntervalSeconds">5</attribute>
| <region name="/_default_">
| <attribute name="maxNodes">5000</attribute>
| <attribute name="timeToLiveSeconds">0</attribute>
| </region>
| </config>
| </attribute>
| <attribute name="CacheLoaderConfiguration">
| <config>
| <passivation>false</passivation>
| <preload></preload>
| <shared>false</shared>
|
| <cacheloader>
| <class>org.jboss.cache.loader.JDBCCacheLoader</class>
| <properties>
| cache.jdbc.driver=com.mysql.jdbc.Driver
| cache.jdbc.url=jdbc:mysql://localhost:3306/vcall
| cache.jdbc.user=root
| cache.jdbc.password=Pas7*!
| cache.jdbc.table.drop=false
| </properties>
| <async>false</async>
| <fetchPersistentState>false</fetchPersistentState>
| <ignoreModifications>false</ignoreModifications>
| <purgeOnStartup>false</purgeOnStartup>
| </cacheloader>
| </config>
| </attribute>
| </mbean>
|
| </server>
| |
| | I use JBOSS AS 4.0.5GA and JBossCache 1.4.0.SP1.
| |
| | Any help will be appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4109863#4109863
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4109863
More information about the jboss-user
mailing list