Adding an EJB Service Endpoint

The service endpoint provides the implementation of an EJB service. You can add a service endpoint throughout the development process, when creating a service, editing the service interface, or developing a service package profile that contains an EJB service.

To add an EJB service endpoint:

  1. Open the EJB service in service editor.

  2. Select the Service Interface tab.

  3. Right-click the service interface, and select Add Endpoint from the context menu.

    The Endpoint Type window opens.

  4. Add a service endpoint. Choose from the following:

    Endpoint Type

    FieldDescription

    Logical

    Defines a logical endpoint, requiring you to bind the service endpoint later in the development process.

    Server

    Defines and binds the service endpoint. You can edit this endpoint any time in the development process.
  5. Enter the endpoint name, and click Next.

  6. Define the connection properties. Choose from the following:

    • Select Browse for a valid endpoint in the Enterprise Explorer, and click Browse. Select an EJB implementation to be your service endpoint, and click OK.

    • Select Specify the endpoint properties and press Enter to enable the Next button, and use the following table to define a new endpoint.

      User-specified Endpoint

      PropertyDescription

      Remote Class Name

      Specify the Java class for the remote class name.

      For example: com.sybase.test.ejbs.EJB9

      Home Class Name

      Specify the home class name. For example: com.sybase.test.ejbs.EJBHome

      JNDI Name

      Specify the JDNI name of the initial ContextFactory.

      Initial Context Factory

      Specify the Initial ContextFactory. For example:com.sybase.ejb.InitialContextFactory

      JNDI Provider URL

      Specify the server URL. For example:

      <protocol>://<host_name>:<port number>

    • Add a .jar file to your project for the client-side classes. Choose from the following, and click Next.

      • Locate an existing .jar file. Click Browse.

      • Generate a .jar file from the referenced server. Click Download.

  7. Add a classpath folder or library dependency in the Add Classpath Entries. Click Next.

  8. Select the operations you want to expose, and click Next.

  9. Review the service details in the Summary page. Choose from the following:

    • Click Finish to complete the service endpoint.

    • Click Back to edit a value.

Developing a Sybase Services Package Profile.

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