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:
Open the EJB service in service editor.
Select the Service Interface tab.
Right-click the service interface, and select Add Endpoint from the context menu.
The Endpoint Type window opens.
Add a service endpoint. Choose from the following:
Enter the endpoint name, and click Next.
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
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> |
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.
Add a classpath folder or library dependency in the Add Classpath Entries. Click Next.
Select the operations you want to expose, and click Next.
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.
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com