Re: [Hibernate] JUnit testing of hibernate code segments that need a datasource

2003-12-12 Thread Per Thomas Jahr
I have just done the same, but I don't create a new datasource outside the container. When you run code outside the container you have to use another hibernate.cfg.xml where you specify driver_class, url, username and password. My hibernate.cfg.xml (for use in Tomcat) looks like this: java:com

[Hibernate] JUnit testing of hibernate code segments that need a datasource

2003-12-11 Thread hanasaki
Hibernate has been setup to use the data source provided by Tomcat. There are some JUnit tests that need to be run on code segments/classes that are not running inside the container. How can a Datasource and java:comp/env/jdbc be create and setup for the application outside of the container? ---

RE: [Hibernate] JUnit testing of hibernate code segments that need a datasource

2003-12-10 Thread Dmitri Colebatch
refer that. hth dim -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of hanasaki Sent: Wednesday, 10 December 2003 4:59 PM To: Hibernate-Devel - LIST Subject: [Hibernate] JUnit testing of hibernate code segments that need a datasource Hibernate has been set

RE: [Hibernate] JUnit testing of hibernate code segments that need a datasource

2003-12-10 Thread Eric Pugh
PROTECTED] Behalf Of > hanasaki > Sent: Wednesday, December 10, 2003 5:59 AM > To: Hibernate-Devel - LIST > Subject: [Hibernate] JUnit testing of hibernate code segments > that need > a datasource > > > Hibernate has been setup to use the data source provided by Tomcat. &g

[Hibernate] JUnit testing of hibernate code segments that need a datasource

2003-12-09 Thread hanasaki
Hibernate has been setup to use the data source provided by Tomcat. There are some JUnit tests that need to be run on code segments/classes that are not running inside the container. How can a Datasource and java:comp/env/jdbc be create and setup for the application outside of the container?