[jboss-user] [Clustering/JBoss] - Re: :: Question On JBoss Clustering with Hibernate Second Le
BhaktavatsalamReddy
do-not-reply at jboss.com
Fri Jul 6 17:58:21 EDT 2007
Here is the hibernate config file
=====================
| <?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>
| <!-- Data Source -->
| <property name="hibernate.connection.datasource">
| java:/mamboDS
| </property>
|
| <!-- Select the dialect for the PostgresSQL database -->
| <property name="hibernate.dialect">
| org.hibernate.dialect.PostgreSQLDialect
| </property>
|
| <!-- JBoss Transaction Manager -->
| <property name="hibernate.transaction.manager_lookup_class">
| org.hibernate.transaction.JBossTransactionManagerLookup
| </property>
|
| <!-- Use Container Managed Transaction -->
| <property name="hibernate.transaction.factory_class">
| org.hibernate.transaction.CMTTransactionFactory
| </property>
|
| <property name="hibernate.show_sql">true</property>
|
| <property name="hibernate.use_sql_comments">true</property>
|
| <!-- Properties for second level caching -->
| <property name="hibernate.cache.use_second_level_cache">true</property>
| <property name="hibernate.cache.provider_class">org.hibernate.cache.TreeCacheProvider</property>
| <property name="hibernate.cache.use_query_cache">true</property>
| <property name="hibernate.generate_statistics">true</property>
| <property name="hibernate.cache.use_structured_entries">true</property>
| <property name="hibernate.cache.use_minimal_puts">false</property>
|
| <!-- Register all the mapping files -->
| <mapping resource="com/rs/mambo/hibernate/config/Configuration.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/user/User.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/encoder/Encoder.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/account/Security.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/asset/Asset.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/job/Job.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/job/JobQueue.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/encodingProfile/EncodingProfile.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/encodingRequest/EncodingRequest.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/usage/UsageSummary.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/link/Link.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/reservation/Reservation.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/usage/AccountUsageSummary.hbm.xml" />
| <mapping resource="com/rs/mambo/hibernate/usage/LicenseUsageSummary.hbm.xml" />
|
| <!-- Enable Second Level Caching -->
| <class-cache class="com.rs.mambo.hibernate.account.CompanyImpl" usage="transactional" region="CompanyImpl"/>
| <class-cache class="com.rs.mambo.hibernate.account.AddressImpl" usage="transactional" region="AddressImpl"/>
| <class-cache class="com.rs.mambo.hibernate.account.LicenseImpl" usage="transactional" region="LicenseImpl"/>
| <class-cache class="com.rs.mambo.hibernate.account.LicenseAccessPlanImpl" usage="transactional" region="LicenseAccessPlanImpl"/>
| <class-cache class="com.rs.mambo.hibernate.account.AccountImpl" usage="transactional" region="AccountImpl"/>
| <class-cache class="com.rs.mambo.hibernate.account.AccountAccessPlanImpl" usage="transactional" region="AccountAccessPlanImpl"/>
| <class-cache class="com.rs.mambo.hibernate.asset.FolderImpl" usage="transactional" region="FolderImpl"/>
| <class-cache class="com.rs.mambo.hibernate.asset.AssetMasterImpl" usage="transactional" region="AssetMasterImpl"/>
| <class-cache class="com.rs.mambo.hibernate.asset.AssetImpl" usage="transactional" region="AssetImpl"/>
| <class-cache class="com.rs.mambo.hibernate.encodingProfile.EncodingProfileImpl" usage="transactional" region="EncodingProfileImpl"/>
| <class-cache class="com.rs.mambo.hibernate.encodingRequest.EncodingRequestImpl" usage="transactional" region="EncodingRequestImpl"/>
| <class-cache class="com.rs.mambo.hibernate.reservation.ReservationImpl" usage="transactional" region="ReservationImpl"/>
| <class-cache class="com.rs.mambo.hibernate.job.JobQueueImpl" usage="transactional" region="JobQueueImpl"/>
| <class-cache class="com.rs.mambo.hibernate.encoder.EncoderImpl" usage="transactional" region="EncoderImpl"/>
|
| <!--
| <class-cache class="com.rs.mambo.hibernate.link.LinkImpl" usage="transactional" region="LinkImpl"/>
| <class-cache class="com.rs.mambo.hibernate.job.JobImpl" usage="transactional" region="JobImpl"/>
| -->
|
| <!-- collections caches -->
| <collection-cache collection="com.rs.mambo.hibernate.account.CompanyImpl.licenses" usage="transactional" region="CompanyImpl.licenses"/>
| <collection-cache collection="com.rs.mambo.hibernate.account.LicenseImpl.accountAccessPlanList" usage="transactional" region="LicenseImpl.accountAccessPlanList"/>
| <collection-cache collection="com.rs.mambo.hibernate.account.LicenseImpl.accounts" usage="transactional" region="LicenseImpl.accounts"/>
| <collection-cache collection="com.rs.mambo.hibernate.account.AccountImpl.folderList" usage="transactional" region="AccountImpl.folderList"/>
| <collection-cache collection="com.rs.mambo.hibernate.asset.FolderImpl.childFolderList" usage="transactional" region="FolderImpl.childFolderList"/>
| <collection-cache collection="com.rs.mambo.hibernate.asset.FolderImpl.assetMasterList" usage="transactional" region="FolderImpl.assetMasterList"/>
| <collection-cache collection="com.rs.mambo.hibernate.asset.AssetMasterImpl.assets" usage="transactional" region="AssetMasterImpl.assets"/>
| <collection-cache collection="com.rs.mambo.hibernate.asset.AssetMasterImpl.encodingRequestImplList" usage="transactional" region="AssetMasterImpl.encodingRequestImplList"/>
| <collection-cache collection="com.rs.mambo.hibernate.asset.AssetImpl.attributeMap" usage="transactional" region="AssetImpl.attributeMap"/>
| </session-factory>
| </hibernate-configuration>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4061499#4061499
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4061499
More information about the jboss-user
mailing list