home list archives users mailing list

Subject: 回复: Re: extending ogsa-dai

Date view Thread view Subject view Author view Attachment view

From: hongxia shi (shx.jnuedu@yahoo.com.cn)
Date: May 03, 2007 09:15

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附件!


Date view Thread view Subject view Author view Attachment view