Hi,
I am having some problems with my SessionFactory settings.
I am trying to create a connection to a local MySQL database and i am getting the following error: "Could not find DataSource". After that i receive an exception.
I'm using the latest version of Hibernate as standalone, not connected to any J2EE container.
I am using XML as configuration file, with the following proprieties:
Code:
<!-- properties -->
<property name="connection.datasource">my/first/datasource</property>
<property name="connection.driver_class">org.gjt.mm.mysql.Driver</property>
<!--property name="connection.driver_class">com.mysql.jdbc.Driver</property-->
<property name="connection.url">jdbc:mysql://localhost/test</property>
<property name="connection.username">root</property>
<property name="connection.password"></property>
<property name="dialect">net.sf.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.session_factory_name">java:comp/env/hibernate/SessionFactory</property>
What am i doing wrong?
Thanks in advance,