0

serviceGroupの下にバンドルしたいDataServicesをいくつか作成しました。属性serviceGroup="MyServiceGroup"を手動で追加しました。

ただし、dbsファイルをアップロードすると、serviceGroupは尊重されません。DataSevicesは、serviceとserviceGroupに同じ値で登録されます。

DataServices 4.0.2(Carbon 4.0.2)で試してみました。

dbsファイルのスニペットは次のとおりです。

お客様:

<data name="Customer_DS" serviceGroup="Participants_DS"     serviceNamespace="urn:XYZ:entities:participants">
<config id="default">
    <property name="carbon_datasource_name">XYZ_DB</property>
</config>
...
</data>

コーチ:

<data description="multiple services per each table" enableBatchRequests="false" enableBoxcarring="false" name="Coach_DS" serviceGroup="Participants_DS" serviceNamespace="urn:XYZ:entities:participants" serviceStatus="active">
   <config id="default">
      <property name="carbon_datasource_name">XYZ_DB</property>
   </config>
    ...
</data>

契約:

<data name="Contract_DS" serviceGroup="Participants_DS" serviceNamespace="urn:XYZ:entities:participants">
   <config id="default">
      <property name="carbon_datasource_name">XYZ_DB</property>
   </config>
...
</data>
4

1 に答える 1

0

このコードを参照する場合。

    /* In the context of dataservices one service group will only contain one dataservice.
            *  Hence assigning the service group as the service group name */ 

 String serviceGroupName = serviceHierarchy +
                    this.getServiceNameFromDSContents(deploymentFileData.getFile());

なぜそのまま割り当てられているのか理解できます。(名前+ serviceHierarchy)。これは制限のようです。

完全なソースはここにあります

于 2013-03-26T16:55:51.473 に答える