Editing an EJB Service Endpoint

You can edit service endpoints.

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

  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 endpoint in the service interface, and select Edit Endpoint from the context menu.

    The Endpoint Type dialog opens.

  4. To add a service endpoint, choose one of the following:
    Option Description
    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. To 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 , press Enter to enable the Next button, and use the following table to define a new endpoint.
      Table 1. User-specified endpoint
      Property Description
      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>

  7. To add a .jar file to your project for the client-side classes, choose from the following and click Next.
    • To locate an existing .jar file, click Browse.

    • To generate a .jar file from the referenced server, click Download.
  8. Add a classpath folder or library dependency in the Add Classpath Entries and click Next.
  9. Select the operations you want to expose and click Next.
  10. Review the service details in the Summary page and do one of the following:
    • Click Finish to complete the service endpoint.
    • Click Back to edit a value.
Related concepts
EJB Services
Related tasks
Adding an EJB Service Endpoint
Adding a Classpath Folder or Library Dependency

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.