EJB2Home
The EJB2Home activity connects to an EJB server for EJB 2.x, performs a JNDI lookup operation to obtain a reference to a home object, and obtains a reference to a remote object from the home object. You can use this activity to invoke any method defined by the home object.
You can also use this activity to invoke a method on the EJB home. After this activity is performed, you can use the EJB2Remote activity to invoke methods on the remote object without performing additional remote lookups.
It is optional to cache the home object and the stateless remote objects to reuse them across process instances. However, this improves the performance because further remote lookups are not necessary.
General
In the General tab, you can establish a connection to an EJB server, and specify the JNDI server for the EJB.
Field | Module Property? | Description |
---|---|---|
Name | No | The name to be displayed as the label for the activity in the process. |
EJB Connection | Yes | An EJB Configuration shared resource defines a set of relationships and their participating entities.
Click
If no matching EJB Configuration shared resource is found, click Create Shared Resource to create one. For more details, see Creating an EJB Connection Shared Resource. |
JNDI Name | Yes | The name registered with the JNDI server for the EJB. |
Home Interface Class | No | The name of the home interface for the EJB. The home interface extends
javax.ejb.EJBHome.
Click
|
Home Interface Method | No | The method of the home interface to call. The list provides the methods contained in the selected interface class in the Home Interface Class field. |
Advanced
In the Advanced tab, you can specify the objects that whether you want to cache:
Output
In the Output tab, you can find the search results.
The following table lists the output element in the Output tab of the EJB2Home activity:
Fault
In the Fault tab, you can find the error code and error message of the EJB2Home activity. See Error Codes for more detailed explanation of errors.
The following table lists error schema elements in the Fault tab of the EJB2Home activity:
Error Schema Element | Data Type | Description |
---|---|---|
errorCode | String | Displays the error code returned by the plug-in. |
errorMessage | String | Displays the error message returned by the plug-in. |
errorStackTrace | String | Displays the complete stack trace that causes the exception. |
exceptionClassName | String | Displays the class name of the root exception that causes the exception. |