[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

lle do-not-reply at jboss.com
Thu Dec 14 16:51:52 EST 2006


Sorry, forgot to mention that in my jboss-beans.xml, i got this:


  | <bean name="gaDatasourceFactory" class="org.jboss.seam.microcontainer.DataSourceFactory">
  |       <property name="driverClass">com.mysql.jdbc.Driver</property>
  |       <property name="connectionUrl">jdbc:mysql://localhost:3306/ga_db</property>
  |       <property name="userName">root</property>
  |       <property name="password">sadmin</property>
  |       <property name="jndiName">java:/hibernateDatasource-mysql</property>
  |       <property name="minSize">0</property>
  |       <property name="maxSize">10</property>
  |       <property name="blockingTimeout">1000</property>
  |       <property name="idleTimeout">100000</property>
  |       <property name="transactionManager"><inject bean="TransactionManager"/></property>
  |    </bean>
  |    <bean name="gaDatasource" class="java.lang.Object">
  |       <constructor factoryMethod="getDataSource">
  |          <factory bean="gaDatasourceFactory"/>
  |       </constructor>
  |    </bean>
  | 
and hibernate.cfg.xml:

  | <session-factory name="java:/gadb">
  | 		<property name="show_sql">false</property>
  | 		<property name="connection.datasource">java:/hibernateDatasource-mysql</property>		
  | 		<property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
  | 		<property name="transaction.flush_before_completion">true</property>
  | 		<property name="connection.release_mode">after_statement</property>
  | 		<property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
  | 		<property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
  | ...
  | 

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

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



More information about the jboss-user mailing list