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 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?
---
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
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 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?