Subject: Re: 回复: Re: extending ogsa-dai
- Next message: Abhishek Gupta: "problem during installation of OGSA_DAI WSRF"
- Previous message: Mario Antonioletti: "OGSA-DAI User Group Meeting at OGF20."
- In reply to: hongxia shi: "回复: Re: extending ogsa-dai"
From: Ally Hume (a.hume@epcc.ed.ac.uk)
Date: May 04, 2007 14:45
The driver class name is the name of the java class that implements
the JDBC driver for your mediator database. This is a class that
should be supplied by the providers of the mediator database.
If you create the properties file with the correct driver name in it
then you can use the command line resource deployment functionality
described in:
http://www.ogsadai.org.uk/documentation/ogsadai-wsrf-2.2/doc/wsrf/deploy/DeployDataServiceResourceCLI.html
That should build and install the .xml file for you in the correct place.
Regards,
Ally Hume
OGSA-DAI Development Team
On 03/05/07, hongxia shi <shx.jnuedu@yahoo.com.cn> wrote:
> hi Hume,
> thank you for your help.
> the mediator database system can be accessed via JDBC,so i write my own properties file-gdms.properties,it like this
> dai.resource.id=GdmsResource
> dai.data.resource.type=Relational
> dai.product.name=Mediator
> dai.product.vendor=Mediator
> dai.product.version=1.0
> dai.data.resource.uri=jdbc:mediator://192.168.0.122:8012/mediatordatabase
> dai.driver.class=MediatorDriver ?
> dai.credential=
> dai.user.name=user
> dai.password=password
> dai.driver.jars=C:/j2sdk1.4.2_13/lib/mediatorjdbcdriver.jar,
> dai.driver.jars.0=C:/j2sdk1.4.2_13/lib/mediatorjdbcdriver.jar
>
> but i don't know how to write the dai.driver.class= ?
> where shoud i put the MediatorDriver.class ?
>
> i also wirte the file -mediator.xml,it looks like this
> <?xml version="1.0" encoding="UTF-8"?>
> <dataResourceConfig
> xmlns="http://ogsadai.org.uk/namespaces/2005/10/config">
> <documentation>
> mediator database system
> </documentation>
> <metaData>
> <productInfo>
> <productName>Mediator</productName>
> <productVersion>1.0</productVersion>
> <vendorName>Mediator</vendorName>
> </productInfo>
> </metaData>
> <roleMap name="Name"
> implementation="uk.org.ogsadai.common.rolemap.SimpleFileRoleMapper"
> configuration="WEB-INF/mediator_rolemap.xml"/>
> <dataResource>
> <driver implementation="MediatorDriver">
> <uri>jdbc:mediator://192.168.0.122:8012/mediatordatabase</uri>
> </driver>
> </dataResource>
> </dataResourceConfig>
>
> where shoud i put the mediator.xml?
>
> thank you!
> shi
>
> Ally Hume <a.hume@epcc.ed.ac.uk> 写道:
> Hi Shi,
>
> If the mediator database system can be accessed via JDBC then it ought
> to be possible to change the configuration files for a relation
> resource such that it connects to your mediator system. Configure
> OGSA-DAI to access any relational resource and then edit the
> corresponding data_resource_config.xml configuration file to include
> the new product details, driver and url.
>
> Details of the OGSA-DAI configuration files can be found at:
> http://www.ogsadai.org.uk/documentation/ogsadai-wsrf-2.2/doc/reference/config/index.html
> You will probably be especially keen on the JDBC resource accessor
> config files, described in:
> http://www.ogsadai.org.uk/documentation/ogsadai-wsrf-2.2/doc/reference/config/JDBCDataResourceAccessor/index.html
>
> If, however, the mediator database system cannot be accessed via JDBC
> then you will need to write a specialised data resource accessor for
> it and you will also have to write your own activities to use this.
> This will be a much bigger task.
> See:
> http://www.ogsadai.org.uk/documentation/ogsadai-wsrf-2.2/doc/tutorials/dataresource/howTo.html
> for how to write a data resource accessor and
> http://www.ogsadai.org.uk/documentation/ogsadai-wsrf-2.2/doc/tutorials/activitywrite/index.html
> for how to write an activity.
>
> Hopefully this documentation will be enough for you to make progress.
>
> May I also advise you that OGSA-DAI 3.0 will be released sometime in
> the next few months. How you do these things will be a bit different
> in 3.0 so if you move to 3.0 you will have to port the code you write
> for 2.2. We hope such code porting will not be too difficult and plan
> to release documentation explaining the principles you should follow
> in doing so.
>
> Regards,
>
> Ally Hume
> OGSA-DAI Development Team
>
>
>
> On 02/05/07, hongxia shi wrote:
> > hi all,
> > i want to use dai to access a mediator database system,and the mediator database system to access the oracle,that is
> > dai<--->mediator database system<--->oracle
> > is that possible,and if it is possible,how can i do it?
> > any message would be appreciated.
> > thank you!
> > shi
> >
> >
> > ---------------------------------
> > 抢注雅虎免费邮箱3.5G容量,20M附件!
>
>
>
> ---------------------------------
> 抢注雅虎免费邮箱3.5G容量,20M附件!
>
> ---------------------------------
> 抢注雅虎免费邮箱3.5G容量,20M附件!
- Next message: Abhishek Gupta: "problem during installation of OGSA_DAI WSRF"
- Previous message: Mario Antonioletti: "OGSA-DAI User Group Meeting at OGF20."
- In reply to: hongxia shi: "回复: Re: extending ogsa-dai"