I am trying to set up Hibernate for a JNDI resource pool in tomcat. I have read tutorials explaining how to configure hibernate to use the JNDI resource and Hibernate works, at least i am able to insert into a table User in my database. However I don't know how to confirm if Hibernate is using the JNDI resource. Here is the log:
Code:
Jun 13, 2014 6:42:13 PM org.hibernate.annotations.common.Version <clinit>
INFO: HCANN000001: Hibernate Commons Annotations {4.0.2.Final}
Jun 13, 2014 6:42:13 PM org.hibernate.Version logVersion
INFO: HHH000412: Hibernate Core {4.2.6.Final}
Jun 13, 2014 6:42:13 PM org.hibernate.cfg.Environment <clinit>
INFO: HHH000206: hibernate.properties not found
Jun 13, 2014 6:42:13 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: HHH000021: Bytecode provider name : javassist
Jun 13, 2014 6:42:13 PM org.hibernate.cfg.Configuration configure
INFO: HHH000043: Configuring from resource: /hibernate.cfg.xml
Jun 13, 2014 6:42:13 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: HHH000040: Configuration resource: /hibernate.cfg.xml
Jun 13, 2014 6:42:13 PM org.hibernate.internal.util.xml.DTDEntityResolver resolveEntity
WARN: HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
Jun 13, 2014 6:42:13 PM org.hibernate.cfg.Configuration addResource
INFO: HHH000221: Reading mappings from resource: database/User.hbm.xml
Jun 13, 2014 6:42:13 PM org.hibernate.cfg.Configuration doConfigure
INFO: HHH000041: Configured SessionFactory: null
Jun 13, 2014 6:42:13 PM org.hibernate.dialect.Dialect <init>
INFO: HHH000400: Using dialect: org.hibernate.dialect.MySQLDialect
Jun 13, 2014 6:42:13 PM org.hibernate.engine.transaction.internal.TransactionFactoryInitiator initiateService
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
Hibernate: insert into AxioDB.User (usernameHash, firstName, lastName, address, email, passwordHash, telephone, username) values (?, ?, ?, ?, ?, ?, ?, ?)
Does this mean that Hibernate is not picking up the JNDI and is using its own configuration?
Code:
INFO: HHH000399: Using default transaction strategy (direct JDBC transactions)
Mind that I dont have any experience with any ORM models.
Also excuse me for my poor english.
Thank you in advance