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.

  1. Open the EJB service in the Service editor.
  2. Select the Service Interface tab.
  3. Right-click the service interface and select Add Endpoint.

    The Endpoint Type dialog opens.

  4. To add a service endpoint, choose from the following:
    Table 1. Endpoint types
    Field 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, do one of the following:
    • Select Browse for a valid endpoint in the Enterprise Explorer, 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.
    Table 2. 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 JNDI 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 do one of the following:
    Option Action
    To locate an existing .jar file in the file system Click Browse.
    To generate a .jar file from the referenced server Click Download.
    To locate an existing .jar file in the project Click Browse.
  8. Click Next.
  9. Add a classpath folder or library dependency in the Add Classpath Entries and click Next.
  10. Select the operations you want to expose and click Next.
  11. Review the service details on the Summary page and do one of the following:
    Option Action
    To edit a value Click Back.
    To complete the service endpoint Click Finish.
Related concepts
EJB Services
Related tasks
Editing 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.