I switched to injecting connections with Hivemind and I would say it's
well worth the effort. I could never figure out how to test code when
using the Tomcat database connections but with the Hivemind method you
can just get a connection and add it to the objects you want to test.
There is an
I tried to put the context.xml file in META-INF
The file is like:
?xml version=1.0 encoding=UTF-8?
Context
Resource name=jdbc/bankDataSource auth=Container
type= javax.sql.DataSource driverClassName=com.mysql.jdbc.Driver
url=jdbc:mysql://localhost/MCG username=root
Electrotank, Inc
http://www.electrotank.com
- Original Message -
From: Barry Books [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Monday, December 18, 2006 9:31 AM
Subject: Re: DB-Connection
I switched to injecting connections with Hivemind and I would say it's
In your hibernate.cfg.xml,
Have you set the property connection.datasource to
the
data source ?
Something like :
property
name=connection.datasourcejava:comp/env/jdbc/bankDataSource/property
Also don't forget to include resource-ref in web.xml
for your data source.
Shing
--- Fabian Dittrich