Hello,
Should I need
DataSource if my application works with hibernate/JPA/tomcat 6/oracle?
If no, how can I manage the
database connections?
Does the Hibernate do this for me?
Here is my persistence.xml content:Quote:
<persistence-unit name="appName" transaction-type="RESOURCE_LOCAL">
<properties>
<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9iDialect " />
<property name="hibernate.connection.driver_class" value="oracle.jdbc.driver.OracleDriver" />
<property name="hibernate.connection.username" value="usr" />
<property name="hibernate.connection.password" value="pass" />
<property name="hibernate.connection.url" value="jdbc:oracle:thin:@localhost:1521:XE" />
<property name="hibernate.hbm2ddl.auto" value="update" />
<property name="hibernate.show_sql" value="false" />
<property name="hibernate.connection.characterEncoding" value="UTF-8" />
<property name="hibernate.connection.useUnicode" value="true" />
</properties>
</persistence-unit>