Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info
iconfalse

Web Service is one of many well-defined extension points supported by the WSO2 Governance Registry. Read more on Supported Extension Points for a complete list of extension points supported by WSO2 Governance Registry.

...

Info

The Fragment-Host Bundle Manifest Header declares this sample bundle to be a Fragment of the Registry Kernel. This would mean that the sample handler bundle will become an extension to the Registry Kernel. However, bundles containing services.xml files would not be deployed until the Apache Axis2 runtime has been initialized. Due to OSGi bundle start-up order, it is required that the Registry Kernel starts up before the Apache Axis2 runtime.

Since the Fragment now also being an extension to the Registry Kernel, the combination of this bundle and the Registry Kernel (plus any other fragments) should start up before the Apache Axis2 runtime. But, due to the bundle not getting deployed until the Apache Axis2 runtime has been initialized, it will create a deadlock situation. Due to this reason, we have to get rid of the Fragment-Host header.

5. Add the following content to Create a file named services.xml in GREG_HOME/samples/handler/src/resources/META-INFINF and add the following content:

Code Block
languagehtml/xml
<serviceGroup>
    <service name="EndpointLookupService" scope="transportsession">
        <transports>
            <transport>http</transport>
        </transports>
        <parameter name="ServiceClass" locked="false">
            org.wso2.carbon.registry.samples.services.EndpointLookupService
        </parameter>
    </service>
</serviceGroup>

...

9. Copy the GREG_HOME/ samples/handler/src/target/org.wso2.carbon.registry.samples.handler-4.6.0.jar into GREG_HOME/repository/components/dropins.

...