Re: Multiple Database

From: Sami Mohammed (SMOHAMME..ndependenthealth.com)
Date: Wed Apr 27 2005 - 12:58:39 EDT

  • Next message: Erik Hatcher: "Re: how to re-order a relationship"

    Hi everyone,
    can one answer the query below?

    I am using multiple databases at the same time in single application.

    i am creating multiple dataNodes under one domain name (STESTMultipleDataBase)

    with different DataMaps (map location ="STESTOracleMap.map.xml", map name ="STESTMapSqlserver.map.xml" ),

    and differnet DataNodes (STESTOracleNode,"STESTSqlServerNode)

    is it correct to create muliple DataMaps under one domain name with muliple DataNodes ?

    see my cayenne file below

    <?xml version="1.0" encoding="utf-8"?>
    <domains project-version="1.1">
    <domain name="STESTMultipleDataBase">
            <map name="STESTOracleMap" location="STESTOracleMap.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 : Wed Apr 27 2005 - 12:59:12 EDT