[jboss-user] [JBoss Seam] - Re: seam 2.0.1.CR1 with Tomcat 6.0 and Postgres DB

pabloc2112 do-not-reply at jboss.com
Sun Jan 27 16:25:34 EST 2008


I'm using hibernate so here is my hibernate.cfg.xml: 

  | <hibernate-configuration>
  |     <session-factory name="java:/genie_db">
  |         <property name="show_sql">true</property>
  |         <property name="transaction.flush_before_completion">true</property>
  |         <property name="connection.release_mode">after_statement</property>
  |         <property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
  |         <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
  |         <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
  |         <property name="connection.datasource">java:/PostgresDS</property>
  |         <property name="configurationClass">org.hibernate.cfg.AnnotationConfiguration</property>
  |         <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
  |         <mapping package="com.onlineinfo.genie.domain"/>
  |         <mapping class="com.onlineinfo.genie.domain.User" />      
  |         <mapping class="com.onlineinfo.genie.domain.Customer" />
  |         <mapping class="com.onlineinfo.genie.domain.Address" />
  | ...
  | 

and from components.xml ... 

  | <core:init debug="true"/>
  | 
  | <core:manager conversation-timeout="120000"
  |                   concurrent-request-timeout="500"
  |                   conversation-id-parameter="cid"/>
  | 
  | <!--DB-->
  | <persistence:hibernate-session-factory name="hibernateSessionFactory"/>
  | <persistence:managed-hibernate-session name="genie_db" auto-create="true"/>
  | 
  | <transaction:hibernate-transaction session="#{genie_db}"/>
  | ....
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123901#4123901

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123901



More information about the jboss-user mailing list