This content has been marked as final.
Show 2 replies
-
1. Re: persistPolicy on TreeCache??
jarva55 Jan 21, 2005 6:47 AM (in response to jarva55)sorry. the xml is like this:
<mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=TreeCache"> <depends>jboss:service=Naming</depends> <depends>jboss:service=TransactionManager</depends> <xmbean> <description>PersistentTreeCache</description> <descriptors> <persistence persistPolicy="OnUpdate"/> <!-- THIS IS IMPORTANT --> <persistence-manager value="org.jboss.mx.persistence.DelegatingPersistenceManager"/> <!-- May use a different external AttributePersistenceService; default should be ok. <descriptor name="attribute-persistence-service" value="jboss:service=AttributePersistenceService"/> <descriptor name="attribute-persistence-operation" value="apmCreate"/> --> </descriptors> <class>org.jboss.cache.TreeCache</class> <attribute access="read-write" getMethod="getLockAcquisitionTimeout" setMethod="setLockAcquisitionTimeout"> <name>LockAcquisitionTimeout</name> <type>long</type> </attribute> </xmbean> <attribute name="JndiName">qnecta/servicio/treecache/TreeCache</attribute> <!-- Configure the TransactionManager --> <attribute name="TransactionManagerLookupClass">org.jboss.cache.JBossTransactionManagerLookup</attribute>
-
2. Re: persistPolicy on TreeCache??
ben.wang Jan 24, 2005 1:08 PM (in response to jarva55)JBossCache xml won't accept your xmbean element. If you want to have different persistent policy, you will need a different CacheLoader, if this is what you are after.
-Ben