Re: federate several datasources

From: Robert Klemme (bob.news_at_gmx.net)
Date: 12/10/04

  • Next message: john martin: "Advice on persistent storage in Java"
    Date: Fri, 10 Dec 2004 14:11:11 +0100
    
    

    "Jean-Marc Vanel" <jmvanel@nospam.free.fr.removethis> schrieb im
    Newsbeitrag news:Qh%td.2924$Of5.1971@nntpserver.swip.net...
    > Hello
    >
    > I want to federate (aggregate) several physical datasources, each having
    > its JDBC driver.
    >
    > My idea is that this aggregator could be implemented as a special JDBC
    > driver or Connection, that will respond to queries from the application
    > by dispatching to the relevant tables in each physical database, and
    > construct the final rowset by assembling rowsets from each physical
    > database.
    >
    > JDBCAggregator aggregator = new JDBCAggregator();
    > aggregator.addConnection(db1);
    > aggregator.addConnection(db2);
    > ResultSet = aggregator.createStatement().executeQuery (
    > "SELECT * from db1.client as cl, db2.order as ord " +
    > "where cl.id = ord.client_id" );
    >
    > where all tables from database 1 (respectively 2) get prefix db1 (resp.
    > db2). Or possibly no prefix if there is no ambiguity.
    >
    > I'm looking for an open source project or code suggestions.

    Basically you'll be implementing a complete database system in your
    driver, especially since you have to support transaction semantics etc.
    What do you do with DDL for example? How will you specify in which db a
    new table will be created etc.? Also creating joins from huge tables in
    memory will be difficult to handle for the VM and it could be quite
    imperformant. Are you sure you want that?

    Kind regards

        robert


  • Next message: john martin: "Advice on persistent storage in Java"

    Relevant Pages

    • Re: JDBC Driver
      ... into the documentation of this database and will find out the driver. ... >>How can I find out which JDBC driver is available on my system? ... Examples might be Oracle, Sybase, UniData, ...
      (comp.lang.java.programmer)
    • Re: Connection Reset Issue with MS SQL 2005
      ... What version of the SQL Server 2005 JDBC driver are you running? ... I am using an application with MS SQL 2005 Database + SQL Server 2005 ...
      (microsoft.public.sqlserver.jdbcdriver)
    • matlab-postgresql
      ... i am trying to use the command - database. ... javaaddpath '/PATH/pg73jdbc3.jar'; ... Message: 'JDBC Driver Error: org.postgresql.Driver. ...
      (comp.soft-sys.matlab)
    • MySQL JDBC driver - implications for non-GPLed apps
      ... closed-sourced application that makes use of the GPLed MySQL JDBC driver? ... Here I am talking about using the driver "as is", ... another database by using its driver makes the entire application a "derived ...
      (comp.lang.java.databases)
    • Re: Cannot display ODBC login prompt - want to connect without DSN
      ... database without knowing anything beforehand except the driver name. ... need a connection string and different data sources use different connection ... ODBC, ADO, and VB Script. ...
      (microsoft.public.dotnet.framework.adonet)