This content has been marked as final.
Show 6 replies
-
1. Re: problem with JBossCache 1.2.3 with Hibernate 3.1
bclements Mar 24, 2006 12:49 PM (in response to bclements)Here is the treecache.xml again
-------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
jboss:service=Naming
jboss:service=TransactionManager
org.jboss.cache.GenericTransactionManagerLookup
REPEATABLE_READ
REPL_ASYNC
true
0
0
true
MOD-Catalog
...
300000
300000
15000 -
2. Re: problem with JBossCache 1.2.3 with Hibernate 3.1
bclements Mar 24, 2006 12:56 PM (in response to bclements)sorry...
treecache.xml<?xml version="1.0" encoding="UTF-8"?> <server> <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/> <mbean code="org.jboss.cache.TreeCache" name="jboss.cache:service=TreeCache"> <depends>jboss:service=Naming</depends> <depends>jboss:service=TransactionManager</depends> <attribute name="TransactionManagerLookupClass">org.jboss.cache.GenericTransactionManagerLookup</attribute> <attribute name="IsolationLevel">REPEATABLE_READ</attribute> <attribute name="CacheMode">REPL_ASYNC</attribute> <attribute name="UseReplQueue">true</attribute> <attribute name="ReplQueueInterval">0</attribute> <attribute name="ReplQueueMaxElements">0</attribute> <attribute name="FetchStateOnStartup">true</attribute> <attribute name="ClusterName">MOD-Catalog</attribute> <attribute name="ClusterConfig">... </attribute> <attribute name="InitialStateRetrievalTimeout">300000</attribute> <attribute name="SyncReplTimeout">300000</attribute> <attribute name="LockAcquisitionTimeout">15000</attribute> </mbean> </server>
-
3. Re: problem with JBossCache 1.2.3 with Hibernate 3.1
manik Mar 24, 2006 1:46 PM (in response to bclements)what does your hibernate config look like?
-
4. Re: problem with JBossCache 1.2.3 with Hibernate 3.1
bclements Mar 24, 2006 1:52 PM (in response to bclements)Here is my hibernate.cfg.xml
<?xml version='1.0' encoding='utf-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> <property name="connection.url">jdbc:oracle:thin:@db:1521:DB</property> <property name="connection.username">user</property> <property name="connection.password">pw</property> <property name="connection.pool_size">1</property> <property name="current_session_context_class">thread</property> <property name="dialect">org.hibernate.dialect.OracleDialect</property> <property name="show_sql">true</property> <property name="hibernate.cache.provider_class">org.hibernate.cache.TreeCacheProvider</property> <property name="hibernate.generate_statistics">true</property> <property name="hibernate.cache.use_structured_entries">true</property> <mapping resource="Category.hbm.xml"/> </session-factory> </hibernate-configuration>
-
5. Re: problem with JBossCache 1.2.3 with Hibernate 3.1
manik Mar 24, 2006 2:06 PM (in response to bclements)And what abt your hbm.xml file? Basically, do you set you rcache mode to transactional?
See http://www.hibernate.org/hib_docs/v3/reference/en/html/performance.html#performance-cache-transactional -
6. Re: problem with JBossCache 1.2.3 with Hibernate 3.1
bclements Mar 24, 2006 5:09 PM (in response to bclements)That was the problem. My cache usage was set to "read-write", not "transactional"
Thank you greatly for your help!!!!!!!
Brian