Re: Remote connection

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue May 17 2005 - 09:59:59 EDT

  • Next message: Andrus Adamchik: "Re: Unknown Oracle Statement type error ?"

    > Hello,
    >
    > I want to connect a server database and i make an query in server from
    > remote computer . Does Cayenne has this capability to make remote
    > database connection. If yes, could you send me a sample.
    >
    > Sincerely,
    >
    > Emre Yilmaz

    Well, yeah. Communication with database is client-server by nature. This
    is not Cayenne-specific. This is a database/JDBC feature. JDBC connections
    are estblished by using URLs that can point to any server. So if you are
    currently using a URL with "localhost" in it, just change that to the
    address of the server where your database is running.

    URL details are database specific. For some examples of what a valid URL
    might look like see Cayenne Javadocs of appropriate DbAdapters. E.g.:
    http://objectstyle.org/cayenne/api/cayenne/org/objectstyle/cayenne/dba/oracle/OracleAdapter.html

    Andrus



    This archive was generated by hypermail 2.0.0 : Tue May 17 2005 - 10:00:03 EDT