Ahhhhhh....now I understand.  It would have been more clear if I'd shown all
my db properties:

torque.database.default=PB01
torque.database.default.driver = weblogic.jdbc.pool.Driver
torque.database.default.url = jdbc:weblogic:pool:pb01
torque.database.default.username =
torque.database.default.password =


What I didn't realize are at least these two salient things:

1. For the properties of the form torque.database.XXXXX.driver, .XXXXX.url,
etc., the XXXXX will be the name of the configured connection pool as far as
Torque is concerned, and should correspond to the "name" attribute of the
"database" element in the schema.xml file.

2. The value of torque.database.default should be the name of a connection
pool configured as in 1. above.  That is, it should be XXXXX (or some other
pool configured accordingly.  

I changed my properties to these, and it worked:

torque.database.default=PRIVATE_BANKING
torque.database.PRIVATE_BANKING.driver = weblogic.jdbc.pool.Driver
torque.database.PRIVATE_BANKING.url = jdbc:weblogic:pool:pb01
torque.database.PRIVATE_BANKING.username =
torque.database.PRIVATE_BANKING.password =

Cheers,
David
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 28, 2002 4:54 PM
To: [EMAIL PROTECTED]
Subject: Torque w/ Weblogic driver

Hello,

 

I am having some difficulty using Torque with Weblogic and hope someone can
help me out.  In Weblogic 6.1, I have a connection pool set up named pb01.
In Torque.properties, I have:

 

torque.database.default.driver = weblogic.jdbc.pool.Driver

torque.database.default.url = jdbc:weblogic:pool:pb01

torque.database.default.username =

torque.database.default.password =

 

Yet when I call Torque.init("<path to Torque.properties"), I get:

 

java.sql.SQLException: Connection object is null!

            at
org.apache.torque.pool.DBConnection.getConnection(DBConnection.java:375)

 

I know Torque hasn't been tested with Weblogic yet, but I was wondering if
anyone's got this to work yet.  Thanks!

 

Cheers,

David

 

 

 

David A. Ventimiglia

Wells Fargo Private Client Services

(415) 396-0414 (work)

 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to