MIP - Configuring RPProviders for VDT 1.3.11

Note: For VDT >= 1.3.11


In $VDT_LOCATION/globus/etc/globus_wsrf_mds_index/server-config.wsdd

Find the element service with name “DefaultIndexService”

<service name="DefaultIndexService" provider="Handler" use="literal" style="document">

Add org.globus.mds.usefulrp.rpprovider.ResourcePropertyProviderCollection to the value field of parameter with name=“providers”

<parameter name="providers"
    value="org.globus.wsrf.impl.servicegroup.ServiceGroupRegistrationProvider
        GetRPProvider
        GetMRPProvider
        QueryRPProvider
        DestroyProvider
        SetTerminationTimeProvider
        SubscribeProvider
        GetCurrentMessageProvider"/>

- becomes -

<parameter name="providers"
    value="org.globus.mds.usefulrp.rpprovider.ResourcePropertyProviderCollection
        org.globus.wsrf.impl.servicegroup.ServiceGroupRegistrationProvider
        GetRPProvider
        GetMRPProvider
        QueryRPProvider
        DestroyProvider
        SetTerminationTimeProvider
        SubscribeProvider
        GetCurrentMessageProvider"/>

- Add the following to the service element -

<parameter name="rpProviderConfigFile" value="etc/globus_wsrf_mds_index/gluece-rpprovider-sample-config.xml"/>

- After the following edits, the XML should look similar to the entry below -

<service name="DefaultIndexService" provider="Handler" use="literal" style="document">
  <parameter name="providers"
    value="org.globus.mds.usefulrp.rpprovider.ResourcePropertyProviderCollection
        org.globus.wsrf.impl.servicegroup.ServiceGroupRegistrationProvider
        GetRPProvider
        GetMRPProvider
        QueryRPProvider
        DestroyProvider
        SetTerminationTimeProvider
        SubscribeProvider
        GetCurrentMessageProvider"/>
  <parameter name="rpProviderConfigFile" value="etc/globus_wsrf_mds_index/gluece-rpprovider-sample-config.xml"/>
  <parameter name="scope" value="Application"/>
  <parameter name="allowedMethods" value="*"/>
  <parameter name="handlerClass" value="org.globus.axis.providers.RPCProvider"/>
  <parameter name="className" value="org.globus.mds.index.impl.DefaultIndexService"/>
  <wsdlFile>share/schema/mds/index/index_service.wsdl</wsdlFile>
</service>

The parameter named rpProviderConfigFile refers to another XML file within the $GLOBUS_LOCATION directory which describes the configuration of the RPProvider. The name gluece-rpprovider-sample-config.xml was used because that was suggested in this example


Next, edit $GLOBUS_LOCATION/etc/globus_wsrf_mds_index/gluece-rpprovider-sample-config.xml

It should look similar to the example below:

<ns1:ResourcePropertyProviderConfigArray xsi:type="ns1:ResourcePropertyProviderConfigArray" xmlns:ns1="http://mds.globus.org/rpprovider/2005/08" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ns1:configArray xsi:type="ns1:resourcePropertyProviderConfig">
    <ns1:resourcePropertyName xsi:type="xsd:QName" xmlns:glue="http://infnforge.cnaf.infn.it/glueinfomodel/Spec/V12/R2">glue:Site</ns1:resourcePropertyName>
    <ns1:resourcePropertyImpl xsi:type="xsd:string">org.globus.mds.usefulrp.rpprovider.GenericResourceProperty</ns1:resourcePropertyImpl>
    <ns1:resourcePropertyElementProducers xsi:type="ns1:resourcePropertyElementProducerConfig">
      <ns1:className xsi:type="xsd:string">org.globus.mds.usefulrp.rpprovider.producers.ExternalProcessElementProducer</ns1:className>
      <ns1:arguments xsi:type="xsd:string">libexec/mip/mip</ns1:arguments>
      <ns1:period xsi:type="xsd:int">300</ns1:period>
    </ns1:resourcePropertyElementProducers>
  </ns1:configArray>
</ns1:ResourcePropertyProviderConfigArray>

Please notice the two parts in bold: FIXME nothing in bold

libexec/mip/mip

Denotes the application within $GLOBUS_LOCATION which will be executed to produce XML.

300

Denotes the number of seconds between the program execution (i.e. the information being refreshed).

Restart globus-ws

$VDT_LOCATION/post-install/globus-ws stop
$VDT_LOCATION/post-install/globus-ws start


References