LibraryToggle FramesPrintFeedback

The bundle activator's start method is where you publish your endpoints. To publish your endpoints the start method must do the following:

  1. Instantiate an javax.xml.ws.Endpoint object for the service provider.

  2. Create an optional server context to use when publishing the service provider.

  3. Publish the service provider using one of the publish() methods.

Example 8.5 shows code for publishing a service provider.


The code in Example 8.5 does the following:

1

Instantiates a copy of the service's implementation object.

2

Creates an unpublished Endpoint for the service implementation.

3

Publish the service provider at http://localhost:9000/SoapContext/SoapPort.

Comments powered by Disqus
loading table of contents...