Suhas Kulkarni wrote:
Hi ,

How to specify database.xml file for connecting to
DB2 database . ? I'm using WSAD here then how to
configure the Datasource and use that in database.xml
to point to database ?
example database.xml for DB2 :

<!DOCTYPE databases PUBLIC
	"-//EXOLAB/Castor JDO Configuration DTD Version 1.0//EN"
	"http://castor.exolab.org/jdo-conf.dtd";>
<database name="default" engine="db2" >
 <driver class-name="COM.ibm.db2.jdbc.app.DB2Driver"
   url="jdbc:db2:CASTOR">
    <param name="user" value="db2admin" />
    <param name="password" value="db2admin" />
  </driver>
  <mapping href="mapping.xml" />
</database>


 Also it will be great if you give some pointers on
list of mapping between "java field types" and "DB2
column types" !

DB2 is supported by the Castor Doclet
(http://castordoclet.sourceforge.net), just have a look at
the "types" example to see the mapping between Java/Castor/
DB2 types.

--
Mickael Guessant
Technical Consultant
http://mguessan.free.fr
mailto:mguessan@;free.fr

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev

Reply via email to