Guest User

registry.xml

a guest
Nov 29th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 17.47 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <wso2registry>
  3.  
  4.     <!-- These are used to define the DB configuration and the basic parameters to be used for the registry -->
  5.  
  6.     <currentDBConfig>wso2registry</currentDBConfig>
  7.     <readOnly>false</readOnly>
  8.     <enableCache>true</enableCache>
  9.     <registryRoot>/</registryRoot>
  10.  
  11.     <!-- This defines the default database and its configuration of the registry -->
  12.  
  13.     <dbConfig name="govregistry">
  14.        <dataSource>jdbc/WSO2REG_DB</dataSource>
  15.     </dbConfig>
  16.  
  17.     <!-- This handler provides the feature to add a simlink to a given resource -->
  18.  
  19.     <handler class="org.wso2.carbon.registry.extensions.handlers.ExtensionsSymLinkHandler">
  20.         <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher">
  21.             <property name="pattern">.*</property>
  22.         </filter>
  23.     </handler>
  24.  
  25.     <!-- This handler provides resource retention locking for the resources -->
  26.  
  27.     <handler class="org.wso2.carbon.registry.extensions.handlers.RetentionHandler"
  28.            methods="PUT,DELETE,MOVE,RENAME,IMPORT,COPY,ADD_ASSOCIATION,REMOVE_ASSOCIATION,RESTORE,RESTORE_VERSION">
  29.         <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher">
  30.             <property name="pattern">.*</property>
  31.         </filter>
  32.     </handler>
  33.  
  34.     <!-- This handler process the uploaded  WSDL files -->
  35.  
  36.     <handler class="org.wso2.carbon.registry.extensions.handlers.WSDLMediaTypeHandler">
  37.         <!--property name="createService">false</property>
  38.        <property name="disableWSDLValidation">true</property-->
  39.         <property name="disableSymlinkCreation">true</property>
  40.         <property name="schemaLocationConfiguration" type="xml">
  41.             <location>/trunk/schemas/</location>            
  42.     </property>
  43.         <property name="wsdlLocationConfiguration" type="xml">
  44.             <location>/trunk/wsdls/</location>            
  45.     </property>
  46.         <property name="policyLocationConfiguration" type="xml">
  47.             <location>/trunk/policies/</location>            
  48.     </property>
  49.  
  50.         <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
  51.             <property name="mediaType">application/wsdl+xml</property>
  52.         </filter>
  53.     </handler>
  54.  
  55.     <!-- This handler processes .zip & .gar files being added to the registry -->
  56.  
  57.     <handler class="org.wso2.carbon.registry.extensions.handlers.ZipWSDLMediaTypeHandler">
  58.         <property name="wsdlMediaType">application/wsdl+xml</property>
  59.         <property name="schemaMediaType">application/xsd+xml</property>
  60.         <property name="threadPoolSize">50</property>
  61.         <property name="disableSymlinkCreation">true</property>
  62.         <!--property name="createService">false</property>
  63.         <property name="useOriginalSchema">true</property>
  64.        <property name="disableWSDLValidation">true</property>
  65.        <property name="disableSchemaValidation">true</property>
  66.        <property name="wsdlExtension">.wsdl</property>
  67.        <property name="schemaExtension">.xsd</property>
  68.        <property name="archiveExtension">.gar</property>
  69.        <property name="tempFilePrefix">wsdl</property-->
  70.         <property name="numberOfRetry">3</property>
  71.         <property name="schemaLocationConfiguration" type="xml">
  72.             <location>/trunk/schemas/</location>
  73.         </property>
  74.         <property name="wsdlLocationConfiguration" type="xml">
  75.             <location>/trunk/wsdls/</location>
  76.         </property>
  77.     <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
  78.             <property name="mediaType">application/vnd.wso2.governance-archive</property>
  79.         </filter>
  80.     </handler>
  81.  
  82.     <!-- This handler processes the services being added to the registry -->
  83.  
  84.     <handler class="org.wso2.carbon.registry.extensions.handlers.ServiceMediaTypeHandler">
  85.         <!--property name="disableWSDLValidation">true</property-->
  86.         <property name="defaultServiceVersion">1.0.0-SNAPSHOT</property>
  87.         <property name="disableSymlinkCreation">true</property>
  88.         <property name="smartLifecycleLinks" type="xml">
  89.             <key>dev</key>
  90.             <key>qa</key>
  91.             <key>live</key>
  92.         </property>        
  93.         <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
  94.             <property name="mediaType">application/vnd.wso2-service+xml</property>
  95.         </filter>
  96.     </handler>
  97.  
  98.     <!-- This handler provides the ability to remove the entire heirarchy for a given service while deleting the service -->
  99.  
  100.     <handler class="org.wso2.carbon.registry.extensions.handlers.DeleteHierarchyHandler">
  101.         <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
  102.             <property name="mediaType">application/vnd.wso2-service+xml</property>
  103.         </filter>
  104.     </handler>    
  105.  
  106.  
  107.    <!--This handler delete the subscription hierarcy generated in the notifications path when a subscription is deleted directly -->
  108.  
  109.     <handler class="org.wso2.carbon.registry.extensions.handlers.DeleteHierarchyHandler">
  110.          <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher">
  111.                 <property name="deletePattern">/_system/governance/event/topics/registry/notifications/.*</property>
  112.          </filter>
  113.     </handler>
  114.  
  115.  
  116.     <!-- This handler processes the links for the lifecycle -->
  117.  
  118.     <handler class="org.wso2.carbon.registry.extensions.handlers.SmartLifecycleLinkHandler">
  119.         <property name="states" type="xml">
  120.             <state key="dev">Created</state>
  121.             <state key="qa">Tested</state>
  122.             <state key="live">Deployed</state>
  123.         </property>
  124.         <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
  125.             <property name="mediaType">application/vnd.wso2-smart-link</property>
  126.         </filter>
  127.     </handler>
  128.  
  129.     <!-- This handler processes the policy files of the given media type defined by the filter -->
  130.  
  131.     <handler class="org.wso2.carbon.registry.extensions.handlers.PolicyMediaTypeHandler">
  132.     <property name="policyLocationConfiguration" type="xml">
  133.             <location>/trunk/policies/</location>            
  134.     </property>
  135.         <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
  136.             <property name="mediaType">application/policy+xml</property>
  137.         </filter>
  138.     </handler>
  139.  
  140.     <!-- This handler processes the schema types which are defined by the filter  -->
  141.  
  142.     <handler class="org.wso2.carbon.registry.extensions.handlers.XSDMediaTypeHandler">
  143.         <!--property name="disableSchemaValidation">true</property-->
  144.         <property name="disableSymlinkCreation">true</property>
  145.         <property name="locationConfiguration" type="xml">
  146.             <location>/trunk/schemas/</location>            
  147.         </property>
  148.         <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
  149.             <property name="mediaType">application/x-xsd+xml</property>
  150.         </filter>
  151.     </handler>
  152.  
  153.     <!-- This handler processes making an external link to a given resource -->
  154.  
  155.     <handler class="org.wso2.carbon.registry.extensions.handlers.ExternalLinkHandler">
  156.         <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
  157.             <property name="mediaType">application/vnd.wso2-hyperlink</property>
  158.         </filter>
  159.     </handler>
  160.  
  161.     <!-- This handler processes service end-points defined in the WSDL files being uploaded to the registry -->
  162.  
  163.     <handler class="org.wso2.carbon.registry.extensions.handlers.EndpointMediaTypeHandler">
  164.         <property name="endpointMediaType">application/vnd.wso2.endpoint</property>
  165.         <property name="endpointLocationConfiguration" type="xml">
  166.             <location>/trunk/endpoints/</location>
  167.         </property>
  168.         <filter class="org.wso2.carbon.registry.extensions.filters.EndpointMediaTypeMatcher">
  169.         </filter>
  170.     </handler>
  171.  
  172.     <handler class="org.wso2.carbon.governance.registry.extensions.handlers.UriMediaTypeHandler">
  173.     <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
  174.         <property name="mediaType">application/vnd.wso2-uri+xml</property>
  175.     </filter>
  176.     </handler>
  177.  
  178.     <!-- When a resource/governance artifact is deleted, this handler will cleanup all its bounded subscriptions from registry-->
  179.  
  180.     <handler class="org.wso2.carbon.registry.extensions.handlers.DeleteSubscriptionHandler">
  181.          <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher">
  182.                  <property name="pattern">.*</property>
  183.          </filter>
  184.     </handler>
  185.  
  186.     <!--This handler manage the meta data resource caching-->
  187.     <handler class="org.wso2.carbon.governance.registry.extensions.handlers.MetaDataCacheHandler">
  188.         <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher">
  189.             <property name="pattern">.*</property>
  190.         </filter>
  191.     </handler>
  192.  
  193.     <!--This handler clears the caches when workflow-extension config is updated.-->
  194.    <handler class="org.wso2.carbon.apimgt.impl.handlers.APIConfigMediaTypeHandler" methods="PUT,DELETE">
  195.       <filter class="org.wso2.carbon.registry.core.jdbc.handlers.filters.MediaTypeMatcher">
  196.         <property name="mediaType">workflow-config</property>
  197.     </filter>
  198.    </handler>
  199.  
  200.     <!--remoteInstance url="https://localhost:9443/registry">
  201.     <id>instanceid</id>
  202.         <username>username</username>
  203.         <password>password</password>
  204.        <cacheId>wso2carbon@jdbc:h2:repository/database/WSO2CARBON_DB</cacheId>
  205.    </remoteInstance-->
  206.  
  207.     <!-- This defines the Atom based remote registry instance configuration -->
  208.  
  209.     <!--remoteInstance url="https://localhost:9443/registry">
  210.        <id>instanceid</id>
  211.        <username>username</username>
  212.        <password>password</password>
  213.        <type>ws</type>
  214.        <cacheId>wso2carbon@jdbc:h2:repository/database/WSO2CARBON_DB</cacheId>
  215.    </remoteInstance-->
  216.  
  217.     <!-- This defines the JDBC based remote registry instance configuration  -->
  218.  
  219.     <remoteInstance url="https://localhost">   
  220.        <id>gov</id>
  221.        <dbConfig>govregistry</dbConfig>
  222.        <cacheId>apiuser@jdbc:mysql://localhost:3306/registry</cacheId>
  223.        <readOnly>false</readOnly>
  224.        <enableCache>true</enableCache>
  225.        <registryRoot>/</registryRoot>
  226.     </remoteInstance>
  227.  
  228.     <!-- This defines the mount configuration to be used with the remote instance and the target path for the mount -->
  229.  
  230.     <mount path="/_system/governance" overwrite="true">
  231.        <instanceId>gov</instanceId>
  232.        <targetPath>/_system/governance</targetPath>
  233.     </mount>
  234.    
  235.     <mount path="/_system/config" overwrite="true">
  236.        <instanceId>gov</instanceId>
  237.        <targetPath>/_system/config</targetPath>
  238.     </mount>
  239.  
  240.     <!-- This defines index configuration which is used in meta data search feature of the registry -->
  241.     <indexingConfiguration>
  242.         <startingDelayInSeconds>60</startingDelayInSeconds>
  243.         <indexingFrequencyInSeconds>2</indexingFrequencyInSeconds>
  244.         <!--number of resources submit for given indexing thread -->
  245.         <batchSize>50</batchSize>
  246.         <!--number of worker threads for indexing -->
  247.         <indexerPoolSize>10</indexerPoolSize>
  248.         <!-- location storing the time the indexing took place-->
  249.         <lastAccessTimeLocation>/_system/local/repository/components/org.wso2.carbon.registry/indexing/lastaccesstime</lastAccessTimeLocation>
  250.         <!-- the indexers that implement the indexer interface for a relevant media type/(s) -->
  251.         <indexers>
  252.             <!--indexer class="org.wso2.carbon.registry.indexing.indexer.MSExcelIndexer" mediaTypeRegEx="application/vnd.ms-excel"/>
  253.            <indexer class="org.wso2.carbon.registry.indexing.indexer.MSPowerpointIndexer" mediaTypeRegEx="application/vnd.ms-powerpoint"/>
  254.            <indexer class="org.wso2.carbon.registry.indexing.indexer.MSWordIndexer" mediaTypeRegEx="application/msword"/>
  255.            <indexer class="org.wso2.carbon.registry.indexing.indexer.PDFIndexer" mediaTypeRegEx="application/pdf"/>
  256.            <indexer class="org.wso2.carbon.registry.indexing.indexer.XMLIndexer" mediaTypeRegEx="application/xml"/-->
  257.             <!--indexer class="org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer" mediaTypeRegEx="application/wsdl\+xml" profiles ="default,api-store,api-publisher"/>
  258.            <indexer class="org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer" mediaTypeRegEx="application/x-xsd\+xml " profiles ="default,api-store,api-publisher"/>
  259.            <indexer class="org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer" mediaTypeRegEx="application/policy\+xml" profiles ="default,api-store,api-publisher"/-->
  260.             <indexer class="org.wso2.carbon.governance.registry.extensions.indexers.RXTIndexer" mediaTypeRegEx="application/vnd.(.)+\+xml" profiles ="default,api-store,api-publisher"/>
  261.             <!--indexer class="org.wso2.carbon.registry.indexing.indexer.XMLIndexer" mediaTypeRegEx="application/(.)+\+xml"/>
  262.            <indexer class="org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer" mediaTypeRegEx="text/(.)+"/>
  263.            <indexer class="org.wso2.carbon.registry.indexing.indexer.PlainTextIndexer" mediaTypeRegEx="application/x-javascript"/-->
  264.         <indexer class="org.wso2.carbon.apimgt.impl.indexing.indexer.PlainTextIndexer" mediaTypeRegEx="text/plain+" profiles ="default,api-store,api-publisher"/>
  265.         <indexer class="org.wso2.carbon.apimgt.impl.indexing.indexer.PDFIndexer" mediaTypeRegEx="application/pdf" profiles ="default,api-store,api-publisher"/>
  266.         <indexer class="org.wso2.carbon.apimgt.impl.indexing.indexer.MSWordIndexer" mediaTypeRegEx="application/msword" profiles ="default,api-store,api-publisher"/>
  267.         <indexer class="org.wso2.carbon.apimgt.impl.indexing.indexer.MSPowerpointIndexer" mediaTypeRegEx="application/vnd.ms-powerpoint" profiles ="default,api-store,api-publisher"/>
  268.         <indexer class="org.wso2.carbon.apimgt.impl.indexing.indexer.MSExcelIndexer" mediaTypeRegEx="application/vnd.ms-excel" profiles ="default,api-store,api-publisher"/>
  269.         <indexer class="org.wso2.carbon.apimgt.impl.indexing.indexer.XMLIndexer" mediaTypeRegEx="application/xml" profiles ="default,api-store,api-publisher"/>
  270.         </indexers>
  271.         <exclusions>
  272.             <exclusion pathRegEx="/_system/config/repository/dashboards/gadgets/swfobject1-5/.*[.]html"/>
  273.             <exclusion pathRegEx="/_system/local/repository/components/org[.]wso2[.]carbon[.]registry/mount/.*"/>
  274.         </exclusions>
  275.     </indexingConfiguration>
  276.  
  277.  
  278.     <!-- This static configuration is suppose to be modified before any data being loaded to the registry (i.e.: before the first startup) -->
  279.    
  280.     <staticConfiguration>
  281.         <versioningProperties>true</versioningProperties>
  282.         <versioningComments>true</versioningComments>
  283.         <versioningTags>true</versioningTags>
  284.         <versioningRatings>true</versioningRatings>
  285.         <!-- Location you want to add service and default location will be /services/ -->
  286.         <servicePath>/trunk/services/</servicePath>
  287.     </staticConfiguration>
  288.  
  289.     <!-- This enables auto-versioning of resources (non-collection). Whenever a resource is updated a new version will be created -->
  290.  
  291.     <versionResourcesOnChange>false</versionResourcesOnChange>
  292.    
  293.     <!-- This enables JMX management for G-Reg -->
  294.    
  295.     <jmx enabled="false">
  296.         <service name="InvocationStatistics" enabled="true"/>
  297.         <service name="Activities" enabled="true"/>
  298.         <service name="Properties" enabled="true"/>
  299.         <service name="Subscriptions" enabled="true"/>
  300.         <service name="Events" enabled="true"/>
  301.     </jmx>
  302.    
  303.     <!-- If you need to use a Remote Human Task to provide the Work List functionality instead of the Embedded Human Task or if you want
  304.         to use Work List notifications, uncomment the following configuration. Please note that you need to provide the credentials
  305.         and URL to connect to the remote instance (ex:- remote BPS server) if you are planning to use a Remote Human Task. You should
  306.         provide credentials and URL to connect to the local instance if you simply want to use Work List notifications. -->
  307.    
  308.     <!--workList serverURL="local://services/" remote="false">
  309.        <username>admin</username>
  310.        <password>admin</password>
  311.    </workList-->
  312.    
  313.     <!-- Sample SCM configuration. Please note that checkOutURL, workingDir, and mountPoint are mandatory for each connection.
  314.         The update frequency is in minutes. Setting readOnly would disable checkIn even if the checkInURL is set. The credentials
  315.         are to connect to the corresponding repository and must be provided if required. -->
  316.    
  317.     <!--scm>
  318.        <connection checkOutURL="scm:svn:http://svn.wso2.org/repos/wso2" workingDir="/valid/filesystem/path" mountPoint="/_system/foo" checkInURL="" readOnly="" updateFrequency="">
  319.             <username>admin</username>
  320.             <password>admin</password>
  321.        </connection>
  322.    </scm-->
  323.    
  324.     <!-- This defines the list of scheduled tasks for the registry -->
  325.    
  326.     <!--tasks>
  327.        <task name="TaskName" class="com.foo.TaskClass">
  328.            <trigger cron="cronExpr"/>
  329.            <property key="foo" value="FooVal" />
  330.            <property key="bar" value="BarVal" />
  331.        </task>
  332.    </tasks-->
  333.  
  334. </wso2registry>
Add Comment
Please, Sign In to add comment