LibraryToggle FramesPrintFeedback

The bnd Ant task uses the BND control file shown in Example 4.4.

Example 4.4. OSGi BND Control File

Private-Package: demo.hw.server, org.apache.hello_world_soap_http.* 1
Import-Package: javax.jws, javax.wsdl, META-INF.cxf, org.apache.cxf.bus, org.apache.cxf.bus.spring, org.apache.cxf.bus.resource, org.apache.cxf.configuration.spring, org.apache.cxf.resource, org.springframework.beans.factory.config, * 2
Include-Resource: META-INF/spring/beans.xml=beans.xml, hello_world.wsdl=wsdl/hello_world.wsdl  3
Bundle-Version: 1.0
Require-Bundle: org.apache.cxf.cxf-bundle
DynamicImport-Package: org.apache.cxf.* 4

The BND control file specifies the following:

1

The classes implementing the service are to be added to the bundle, but not exported.

1

The packages listed in Required packages are imported by the bundle.

3

The WSDL file and the configuration are copied into the proper places in the bundle.

4

The org.apache.cxf.* packages are dynamically imported for the Spring-DM framework.

Comments powered by Disqus
loading table of contents...