[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2426) Misleading logging messages when using ThreadLocalSessionContext

Zemian Deng (JIRA) noreply at atlassian.com
Wed Sep 15 16:33:22 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2426?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=38412#action_38412 ] 

Zemian Deng commented on HHH-2426:
----------------------------------

I too think this logging message is misleading
{code}
INFO [org.hibernate.cfg.SettingsFactory:info] Automatic session close at end of transaction: disabled
{code}

> Misleading logging messages when using ThreadLocalSessionContext
> ----------------------------------------------------------------
>
>                 Key: HHH-2426
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2426
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.2.0.ga
>            Reporter: Don Smith
>            Priority: Minor
>
> The log messages printed out by TransactionFactoryFactory and SettingsFactory are misleading when using ThreadLocalSessionContext:
> 2007-02-09 21:49:58,581 INFO [org.hibernate.transaction.TransactionFactoryFactory:info] Using default transaction strategy (direct JDBC transactions)
> 2007-02-09 21:49:58,588 INFO [org.hibernate.transaction.TransactionManagerLookupFactory:info] No TransactionManagerLookup Configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
> 2007-02-09 21:49:58,590 INFO  [org.hibernate.cfg.SettingsFactory:info] Automatic flush during beforeCompletion(): disabled
> 2007-02-09 21:49:58,591 INFO  [org.hibernate.cfg.SettingsFactory:info] Automatic session close at end of transaction: disabled
> This does not indicate that sessions will be closed after commit, which is the behavior when using ThreadLocalSessionContext.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list