I use Websphere.
It doesn't work.
I have defines the next datasource :
Name : OradevDS
JNDI : jdbc/ora
Database : jdbc:oracle:thin:@localhost:1521:TEST
User
pw
This is attached to jdbc driver : oracle.jdbc.pool.OracleConnectionCacheImpl
=============
When i white the next on the config.xml
<database name="oracle" engine="oracle" >
<jndi name="OradevDS"/>
<mapping href="mapping.xml"/>
</database>
I have the next exception :
org.exolab.castor.mapping.MappingException: The JNDI name OradevDS does not map to a
JDBC DataSource
at
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.java:310)
at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:559)
at fr.cmc.umm.entreprise.abonne.AbonneService.main(AbonneService.java:387)
==================================
When i white the next on the config.xml
<database name="oracle" engine="oracle" >
<jndi name="jdbc/ora"/>
<mapping href="mapping.xml"/>
</database>
I have the next exception :
org.exolab.castor.mapping.MappingException: The JNDI name jdbc/ora does not map to a
JDBC DataSource
at
org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.java:310)
at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:559)
at fr.cmc.umm.entreprise.abonne.AbonneService.main(AbonneService.java:387)
================
Thanks for your help
Bye
======================================================
>>> [EMAIL PROTECTED] 04/02/02 17:51:57 >>>
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
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
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev