查看日记的时候,我看到一些让我迷惑的东西,还望大家给看下
2010-04-22 08:36:05,617 [TP-Processor2] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
2010-04-22 08:36:05,617 [TP-Processor3] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
2010-04-22 08:36:05,617 [TP-Processor1] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
我对这三句的理解是:“building session factory”是实例化了一个hiberante的sessionfactory,但为什么是三个线程都输出这个日记了?难道有三个sessionFactory??还有,大部分的日记都会有类似的东西,比如
2010-04-22 08:36:06,117 [TP-Processor3] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
2010-04-22 08:36:06,117 [TP-Processor2] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
2010-04-22 08:36:06,117 [TP-Processor1] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
还有:
2010-04-22 08:36:02,023 [TP-Processor2] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/angbar/model/Game.hbm.xml
2010-04-22 08:36:02,023 [TP-Processor3] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/angbar/model/Game.hbm.xml
2010-04-22 08:36:02,023 [TP-Processor1] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/angbar/model/Game.hbm.xml
2010-04-22 08:36:02,288 [TP-Processor3] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/angbar/model/GameFile.hbm.xml
2010-04-22 08:36:02,288 [TP-Processor1] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/angbar/model/GameFile.hbm.xml
2010-04-22 08:36:02,288 [TP-Processor2] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/angbar/model/GameFile.hbm.xml
2010-04-22 08:36:02,335 [TP-Processor3] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/angbar/model/Phone.hbm.xml
2010-04-22 08:36:02,382 [TP-Processor3] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/angbar/model/Comment.hbm.xml
2010-04-22 08:36:02,382 [TP-Processor2] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/angbar/model/Phone.hbm.xml
2010-04-22 08:36:02,398 [TP-Processor2] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/angbar/model/Comment.hbm.xml
2010-04-22 08:36:02,413 [TP-Processor1] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/angbar/model/Phone.hbm.xml
2010-04-22 08:36:02,460 [TP-Processor1] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : com/angbar/model/Comment.hbm.xml
和hibernate有关的日记,都是三个线程,然后内容都一样,很是不解~
望高手给看看,我的jdon版本是5.x