Adapter for Enterprise JavaBeans 6.5 SP3 | webMethods Adapter for Enterprise JavaBeans Documentation | webMethods Adapter for Enterprise JavaBeans Installation and User’s Documentation | Adapter Services | Configuring CreateEJB 2.1 Services
 
Configuring CreateEJB 2.1 Services
A CreateEJB 2.1 adapter service invokes a specific EJB creator or finder method on the EJB's remote home interface. For more information about the template used to create these services, see CreateEJB 2.1 Adapter Service. For more information about adapter services, see .
*To configure a CreateEJB 2.1 adapter service
1. Review the steps in Before Configuring or Managing Adapter Services.
2. Start Designer.
Note:
Make sure the server with which you want to use Designer is running.
3. Right-click the package in which the service should be contained and select New > Adapter Service.
4. Select the parent namespace and type a name for the adapter service. Click Next.
5. Select Adapter for EJB from the list of available adapter types. Click Next.
6. Select the appropriate Adapter Connection Name and click Next.
7. From the list of available templates, select the CreateEJB 2.1 template and click Finish.
The service is created and its parameters and controls are displayed in the adapter service editor.
8. In the editor, select the CreateEJB 2.1 tab and specify the following values:
Parameter
Description/Action
EJB Lookup Name
Lists the JNDI lookup names of all available EJBs on the application server. The name you select here determines the values that will appear in the EJB Create Method and Return Type parameters. At runtime, the service uses this name to look up the EJBHome object. The EJBs are listed alphabetically. By default, the first EJB in the list is initially selected.
EJB Create Method
Lists the available creator/finder methods for the selected EJB lookup name. The method selected will be executed by the service. The methods exposed by the EJB are listed alphabetically. By default, the first method in this list is initially selected.
*If the method has parameters, they appear in the parameter list. For each parameter, the default parameter name and the corresponding Java class type are shown in the first two columns of the parameter list. You may override a parameter's default name by entering a new name in the Override Parameter Name column. The value that appears in this column for a parameter is the value that appears in the configured method's input signature at runtime.
*If the method takes no parameters, the parameter list is empty.
Return Type
Lists the remote EJB method's Java return type for the selected EJB lookup name. This value is read-only.
Note:
The EJB lookup name and EJB create method are displayed by default. If the lookup name and method have input parameters, the parameters are not displayed in the service's input signature until you reload the adapter values. Save the adapter service if you want to use the default values. If you change the lookup name or the create method, the values are automatically refreshed and the parameters appear in the adapter service editor. For more information about reloading adapter values, see Reloading Adapter Values.
9. You can select the Adapter Settings tab at any time to confirm adapter properties such as adapter type, connection name, and service template, as needed.
10. The Input/Output tab lists the input and output parameters, if any, for the method. If the create method has parameters, their names and types appear under the EJBHome_Args document. If this service is later used in a flow, its input and output signatures will be visible in the flow editor.
For additional information about using the Input/Output tab, see the webMethods Service Development Help for your release.
11. Select File > Save.
12. To test the service directly from Designer, see Testing Adapter Services.