-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: What does this mean - No TransactionManagerLookup configure
PostPosted: Thu Oct 12, 2006 7:16 am 
Beginner
Beginner

Joined: Wed Sep 13, 2006 7:24 am
Posts: 26
Hibernate version: 3.1

I am trying to setup Caching, but i am getting an info message about
Quote:
No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
not being setup.

what does this message want me to do ?

All I really want is caching, have i missed something ? do i need to referance a class, which Hibernate provides ?

part of the Log File:
Code:
[2006-10-12 08:58:13,752] INFO  [A.Controller] Configuration: processing association property references
[2006-10-12 08:58:13,752] INFO  [A.Controller] Configuration: processing foreign key constraints
[2006-10-12 08:58:14,033] INFO  [A.Controller] DriverManagerConnectionProvider: [b]Using Hibernate built-in connection pool (not for production use!)[/b]
[2006-10-12 08:58:14,034] INFO  [A.Controller] DriverManagerConnectionProvider: Hibernate connection pool size: -1
[2006-10-12 08:58:14,034] INFO  [A.Controller] DriverManagerConnectionProvider: autocommit mode: false
[2006-10-12 08:58:14,604] INFO  [A.Controller] SettingsFactory: RDBMS: Microsoft SQL Server, version: 8.0.2159
[2006-10-12 08:58:14,604] INFO  [A.Controller] SettingsFactory: JDBC driver: i-net OPTA 2000, version: 2.05
[2006-10-12 08:58:14,628] INFO  [A.Controller] Dialect: Using dialect: org.hibernate.dialect.SQLServerDialect

<!-- WHAT IS THIS ??? -->

[2006-10-12 08:58:14,635] INFO  [A.Controller] TransactionFactoryFactory: Using default transaction strategy (direct JDBC transactions)
[2006-10-12 08:58:14,638] INFO  [A.Controller] TransactionManagerLookupFactory: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)

<!-------------------------->

[2006-10-12 08:58:14,638] INFO  [A.Controller] SettingsFactory: Automatic flush during beforeCompletion(): disabled
[2006-10-12 08:58:14,638] INFO  [A.Controller] SettingsFactory: Automatic session close at end of transaction: disabled
[2006-10-12 08:58:14,639] INFO  [A.Controller] SettingsFactory: Scrollable result sets: enabled
[2006-10-12 08:58:14,639] INFO  [A.Controller] SettingsFactory: JDBC3 getGeneratedKeys(): disabled
[2006-10-12 08:58:14,639] INFO  [A.Controller] SettingsFactory: Connection release mode: null
[2006-10-12 08:58:14,640] INFO  [A.Controller] SettingsFactory: Default batch fetch size: 1
[2006-10-12 08:58:14,640] INFO  [A.Controller] SettingsFactory: Generate SQL with comments: enabled
[2006-10-12 08:58:14,640] INFO  [A.Controller] SettingsFactory: Order SQL updates by primary key: enabled
[2006-10-12 08:58:14,640] INFO  [A.Controller] SettingsFactory: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[2006-10-12 08:58:14,645] INFO  [A.Controller] ASTQueryTranslatorFactory: Using ASTQueryTranslatorFactory
[2006-10-12 08:58:14,645] INFO  [A.Controller] SettingsFactory: Query language substitutions: {}
[2006-10-12 08:58:14,645] INFO  [A.Controller] SettingsFactory: Second-level cache: enabled
[2006-10-12 08:58:14,645] INFO  [A.Controller] SettingsFactory: Query cache: enabled
[2006-10-12 08:58:14,645] INFO  [A.Controller] SettingsFactory: Cache provider: org.hibernate.cache.EhCacheProvider
[2006-10-12 08:58:14,649] INFO  [A.Controller] SettingsFactory: Optimize cache for minimal puts: disabled
[2006-10-12 08:58:14,649] INFO  [A.Controller] SettingsFactory: Structured second-level cache entries: disabled
[2006-10-12 08:58:14,649] INFO  [A.Controller] SettingsFactory: Query cache factory: org.hibernate.cache.StandardQueryCacheFactory
[2006-10-12 08:58:14,659] INFO  [A.Controller] SettingsFactory: Echoing all SQL to stdout
[2006-10-12 08:58:14,659] INFO  [A.Controller] SettingsFactory: Statistics: enabled
[2006-10-12 08:58:14,659] INFO  [A.Controller] SettingsFactory: Deleted entity synthetic identifier rollback: disabled
[2006-10-12 08:58:14,660] INFO  [A.Controller] SettingsFactory: Default entity-mode: pojo
[2006-10-12 08:58:14,697] INFO  [A.Controller] SessionFactoryImpl: building session factory
[2006-10-12 08:58:16,371] INFO  [A.Controller] SessionFactoryObjectFactory: Not binding factory to JNDI, no JNDI name configured
[2006-10-12 08:58:16,374] INFO  [A.Controller] Dialect: Using dialect: org.hibernate.dialect.SQLServerDialect
[2006-10-12 08:58:16,374] INFO  [A.Controller] DriverManagerConnectionProvider: Using Hibernate built-in connection pool (not for production use!)
[2006-10-12 08:58:16,374] INFO  [A.Controller] DriverManagerConnectionProvider: Hibernate connection pool size: -1
[2006-10-12 08:58:16,374] INFO  [A.Controller] DriverManagerConnectionProvider: autocommit mode: false
[2006-10-12 08:58:16,375] INFO  [A.Controller] SchemaUpdate: Running hbm2ddl schema update
[2006-10-12 08:58:16,375] INFO  [A.Controller] SchemaUpdate: fetching database metadata


Mapping File :
Code:

<session-factory>
   <property name="connection.url">
jdbc:inetdae7:dev1:10501?database=devdb
   </property>
   <property name="connection.driver_class">
com.inet.tds.TdsDriver
   </property>
   <property name="sa1"></property>
   <property name="d1nner"></property>

   <property name="show_sql">true</property>
   <property name="format_sql">true</property>
   <property name="order_updates">true</property>
   <property name="generate_statistics">true</property>
   <property name="use_sql_comments">true</property>

   
   <property name="connection.pool_size">-1</property>
   <property name="SecondLevelCacheEnabled">true</property>
   <property name="cache.provider_class">
      org.hibernate.cache.EhCacheProvider
   </property>

   <property name="cache.use_query_cache">true</property>
   
   <property name="current_session_context_class">thread</property>
   

   <mapping resource="FeedsMultiStatic.hbm.xml" />
   <mapping resource="SystemEventDetail.hbm.xml" />
   <mapping resource="Users.hbm.xml" />

</session-factory>

_________________
Ben


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.