Joined: Wed Jan 19, 2011 11:01 am Posts: 4
|
hey everybody.
I have a ComboPooledDataSourced configured in a servlet and i have an error: cannot find datasource, that's cause i think i have to configure it in hibernate.cfg.xml but dont know how. I have ComboPooledDataSource ds = new ComboPooledDataSource(); and then i make the settings in the servlet (like ds.setUser.....) in the hibernate.cfg.xml have: <hibernate-configuration> <session-factory> <property name="hibernate.connection.datasource">package.classWhereDSisDefined</property> </session-factory> </hibernate-configuration>
please tell me if u know how to tell hibernate that i have datasource already defined... thnx Mark
|
|