If you're using weblogic and have defined a datasource called WhiteboardDS
then the following will work.
<database name="oracle" engine="oracle" >
<jndi name="WhiteboardDS"/>
<mapping href="mapping.xml"/>
</database>
Richard Lawson
<Richard.Lawson@St To: [EMAIL PROTECTED]
eeves.NET> cc:
Subject: Re: [castor-dev] JDO and
datasources
02/04/2002 10:31
AM
Please respond to
castor-dev
Try this format, it works for me.
<?xml version = "1.0" encoding = "UTF-8"?>
<!DOCTYPE database PUBLIC "-//EXOLAB/Castor JDO Configuration DTD Version
1.0//EN" "http://castor.exolab.org/jdo-conf.dtd">
<database name = "test" engine = "oracle">
<driver url = "jdbc:oracle:thin:@localhost:1521:TEST" class-name
=
"oracle.jdbc.pool.OracleConnectionCacheImpl">
<param name = "user" value = "SYSTEM"/>
<param name = "password" value = "manager"/>
</driver>
<mapping href = "mapping.xml"/>
</database>
-rich
-----Original Message-----
From: Sylvie RAMON [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 3:01 AM
To: [EMAIL PROTECTED]
Subject: [castor-dev] JDO and datasources
Hi,
I want to use datasource, i think the jdo-conf.dtd is incorrect for this.
In the sample, we can see
<database name="..." engine="oracle" >
<data-source class-name="oracle.jdbc.pool.OracleConnectionCacheImpl">
<params URL="jdbc:oracle:thin:@localhost:1521:TEST" user="SYSTEM"
password="manager"/>
</data-source>
...
</database>
but in the jdo-conf.dtd, the element "params" doesn't exist ??
Do i have to use element "param" ??
Is url necessary with datasource ?
Someone could help me ??
Thanks
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev