list archives . users mailing list

Subject: AW: GDSF Configuration

Date view Thread view Subject view Author view Attachment view

From: Alexander Wohrer (w.alexander@gmx.at)
Date: Apr 04, 2003 11:34

Hello Sishir,

For me it looks like you only have to change the
getGDSConfigFromGDSFConfig() in GridDataServiceFactoryP2R1.java in order to
get
the right dbms and dataresource stored and not the first one!

Hope it works,
        Alexander Wohrer

-----Ursprungliche Nachricht-----
Von: owner-users@ogsadai.org.uk [mailto:owner-users@ogsadai.org.uk]Im
Auftrag von Shishir S. Bharathi
Gesendet: Freitag, 4. April 2003 01:53
An: Brian Hills
Cc: users@ogsadai.org.uk; hickeng@uk.ibm.com
Betreff: Re: GDSF Configuration

I too have the same question. I noticed in the source file:
uk/org/ogsadai/common/ServiceConfiguration.java that there can only be one
DatabaseManagementSystem:

        //Currently can be only one data resource
        DataResourceType dr = mConfiguration.getDataResource();
        answer.setProperty(DATA_RESOURCE, dr.getName());
        mLog.debug(DATA_RESOURCE + " = " + dr.getName());

        //There can also be only one DatabaseManagementSystem
        DatabaseManagementSystemType dbms =
                mConfiguration.getDatabaseManagementSystem();

Is this something the ogsadai team is working on ? Currently I do have a
requirement to provide a service that handles both mysql and xindice. I
was thinking along these lines:

Create another set of instances of GridDataServiceRegsitry and
GridDataServiceFactoryP2R1 and use them to handle xindice. So the client
can use the two different urls to handle the two differnt cases ? I
haven't looked into the code in detail, but duplicating both the Registry
and the Factory might not be necessary.

Are there any problems with this approach ? If not, what are the set of
modifications I'll have to make to my setup to achieve this ?

If this is not possible, could someone confirm this for me and whether it
is at all possible to support 2 or more dbms ?

Thanks,
Shishir

On Wed, 2 Apr 2003, Brian Hills wrote:

> I have a couple of questions about the GDSF config file.
>
> 1. The GDSF documentation states that "more than one DBMS can be
> specified in a [GDSF] configuration file".
>
> Does this imply that one client can request a GDSF create a GDS to query
> one database (say Oracle) and another client can use the same GDSF to
> create another GDS to query another database (say MySQL)?
>
> 2. I have three databases specified in my GDSF configuration file. It
> appears when I run the client, OGSA-DAI attempts to use only the first
> specified DBMS in the GDSF file and ignores the others.
>
> For instance, in the included GDSF config file, I have configured
> Oracle, MySQL and Xindice dbs. If my client performs an Oracle query
> the results are returned ok. If I then use my client to issue a Mysql
> query, OGSA-DAI tries to use the Oracle database. When I swap the
> configuration around such that the Mysql database is configured first,
> results are returned for the Mysql query, but the Oracle query fails as
> it tries to use the MySQL db.
> Is this expected behaviour?
>
> Thanks
>
> Brian
>
>

--

Date view Thread view Subject view Author view Attachment view