Setting the Endpoint for a Java Service

The endpoint of a Java service must be a Java class or source file that implements public methods that match all the operations in the service interface. By default, a new service's endpoint matches the name of the Java source file or class file that you specified when creating the service. In most configurations, there is no need to change the default setting. However, if you created the service from a Java interface, you must specify a Java class that implements the interface as the service endpoint.

The service endpoint displays on the Interface page in the Java Service editor when you click the show endpoints icon. If no endpoint displays, add one as follows:

  1. Display the Service Interface page of the Java Service editor.

  2. Right-click the interface box and choose Add Endpoint.

  3. Specify the endpoint properties as described below.

You can change the Java file that is bound to the endpoint as follows:

  1. Right-click the endpoint box and choose Edit Endpoint.

  2. Choose Resource as the Endpoint Type.

  3. The default endpoint name is the same as the Java class or source file name. Click Next to accept the default.

  4. Specify the path to the source or class file to bind the endpoint to. Click Next.

  5. Specify any JAR files or file system directories that must be added to the class path to load dependent classes. If you are defining a service from an existing Java class or source file, add any items that are required in the runtime or compile-time class path. For details on using this page, see classpath folder or library dependencies. Click Next.

  6. Choose the Java methods to expose as service operations. Click Next.

  7. Review the information on the Summary page, which displays a summary of the settings for the new service. To edit a value, click Back. When done, click Finish.

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com