Editing an EJB Service Endpoint

Edit EJB service endpoints using the EJB editor. You can also edit service endpoints using the Services Package editor.

To edit an EJB service endpoint:

  1. Open the EJB service that you want to edit using the EJB service editor.

  2. Select the Service Interface tab.

  3. Right-click the service interface, and select Edit 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:

    • Browse for an existing endpoint definition. Select Reference from Enterprise Explorer, and click Browse. Select an EJB implementation to be your service endpoint, and click OK.

    • Define a new endpoint. Select User-specified, and complete the following, and click Next:

      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.

    To edit a value, click Back.

  10. Click Finish to complete the endpoint definition.

To edit an endpoint when creating a package definition that contains an EJB service:

Use the Service Package Profile wizard.

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