db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Iran Marcius" <i...@isic.com.br>
Subject RES: Sharing information
Date Fri, 27 Dec 2002 10:11:30 GMT
Of course.

First, I configured a DataSource in tomcat's GlobalNamingResources, and
put a ResourceLink inside my context so it could "see" my datasource
when needed. The configurations seems like the following in tomcat's


<Resource name="jdbc/global" type="javax.sql.DataSource"
<ResourceParams name="jdbc/global">
		<value>select 1</value>

(My context)

<Context docBase="S:\WebAppTests" path="/tests" reloadable="true">
	<ResourceLink name="jdbc/global" global="jdbc/global"

It should got a JNDIDataSource to work. If you don't need a global
datasource, you will need to put the datasource configurations inside
your context and make a few more configurations in your application's
web.xml (niclude a resource-ver to your resource).

After this, in torque.properties file, I removed the comments from only
two lines related with JNDI and put my configurations, as the following:


The other lines related with old connection pool and jdbc2 pool where
commented out.

I hope it helps. Fell free to ask more. Surely I'll help if I can.


-----Mensagem original-----
De: Dan Tran [mailto:danttran@hotmail.com] 
Enviada em: quinta-feira, 26 de dezembro de 2002 19:34
Para: Turbine Torque Users List
Assunto: Re: Sharing information

Could you share on how you got JNDI working?

----- Original Message -----
From: "Iran Marcius" <iran@isic.com.br>
To: <turbine-torque-user@jakarta.apache.org>
Sent: Thursday, December 26, 2002 2:11 AM
Subject: Sharing information

> A few days ago I was unsuccessfully trying get torque to work with
> DataSource. Studying the problem more deeply, I figured out my JNDI
> stuff wasn't working at all (even without torque).
> After a lot of pain and crying I found out what was happening. I had
> tomcat-naming.jar in WEB-INF/lib and it was messing up my JNDI stuff.
> After I removed it, everything worked fine.
> So, thanks to everyone who tried to help me.
> iran
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message