Hi
In my web application, i want to use different databases like oracle, sqlserve and DB2, is it possible with same domanin name or i have to create differnt doman name in the cayenne.xml or i have to create different dataNodes and DataMap files for each database.
Suppose if creating Muliple DataNodes under single Doman is correct then
I have to reenginer database and select the appropriate dataNode for each database and datanode configuration with appropriate DB Adapters.
Do I need any more configuration after doing this ?
pls let me know.
I have a sample cayenne.xml file below for Oracle and Sqlserver databases
<?xml version="1.0" encoding="utf-8"?>
<domains project-version="1.1">
<domain name="STESTMultipleDataBase">
<map name="STESTOracleMap" location="STESTMap.map.xml"/>
<map name="STESTMapSqlserver" location="STESTMapSqlserver.map.xml"/>
<node name="STESTOracleNode"
datasource="jdbc/EDWDORACLE"
adapter="org.objectstyle.cayenne.dba.oracle.OracleAdapter"
factory="org.objectstyle.cayenne.conf.JNDIDataSourceFactory">
<map-ref name="STESTOracleMap"/>
</node>
<node name="STESTSqlServerNode"
datasource="jdbc/EDWDSQLSERVER"
adapter="org.objectstyle.cayenne.dba.sqlserver.SQLServerAdapter"
factory="org.objectstyle.cayenne.conf.JNDIDataSourceFactory">
<map-ref name="STESTMapSqlserver"/>
</node>
</domain>
</domains>
Thanks
sami
CONFIDENTIALITY NOTICE. This e-mail and attachments, if any, may contain confidential information which is privileged and protected from disclosure by Federal and State
confidentiality laws rules and regulations. This e-mail and attachments, if any, are intended for the designated addressee only. If you are not the designated addressee, you
are hereby notified that any disclosure, copying, or distribution of this e-mail and its attachments, if any, may be unlawful and may subject you to legal consequences. If you
have received this e-mail and attachments in error, please contact Independent Health immediately at (716) 631-3001 and delete the e-mail and its attachments from your
computer. Thank you for your attention
This archive was generated by hypermail 2.0.0 : Tue Apr 26 2005 - 16:46:12 EDT