From: Aapo L. <aap...@pr...> - 2002-12-04 02:37:32
|
> Where are connections coming from? A Hibernate ConnectionProvider? Or > an application supplied connection? They come from JNDI and I use Hibernate XML configuration and initialize Hibernate with configure();. > What guarantees does Maverick make about when / > wether discard() will be called? Is it *guaranteed* > to be called in the case of an exception, etc? Great questions, :-))))))))))))))))))))). Thanks! Now I'm trying to get Transactions to use JTA. The problem is that I get following warnings: 04:18:56,649 WARN [JTATransactionFactory] No TransactionManagerLookup configured (use of JCS read-write cache is not recommended) What is this setting. I get that warning even if I don't use JCS. This is my hibernate.properties: hibernate.use_outer_join=true hibernate.show_sql=false hibernate.jdbc.batch_size=10 hibernate.statement_cache.size=20 hibernate.transaction.factory_class=cirrus.hibernate.transaction.JTATran sactionFactory hibernate.transaction.manager_class=cirrus.hibernate.transaction.JNDITra nsactionManagerLookup hibernate.query.substitutions yes 'Y', no 'N' jta.UserTransaction=java:comp/UserTransaction And here is Hibernate.cfg.xml: <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN" "http://hibernate.sourceforge.net/hibernate-co <hibernate-configuration> <session-factory name="java:comp/env/jndi/HibernateSessionFactory"> <property name="connection.datasource">java:comp/env/jdbc/xa/postgresql/something< /property> <property name="dialect">cirrus.hibernate.sql.PostgreSQLDialect</property> ... mapping files ... </session-factory> </hibernate-configuration> Another warning I get with Resin is: 04:18:57,258 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext Should I care about it? |