Configurations for remote_object_release

The remote_object_release process shows how to release EJB 2.x remote objects in one process instance.

Activity Description
Timer This activity starts the process at a specific time.
EJBHome This activity performs a JNDI lookup in the test.NewEJBResource EJB Configuration shared resource and create an EJB 2.x remote object.
EJBHome1 This activity performs a JNDI lookup in the test.NewEJBResource EJB Configuration shared resource and create another EJB 2.x remote object.
EJBRemote This activity invokes a remote method on the remote object which is created by the EJBHome activity. The Release Remote Object check box is selected in Advance tab of this activity.
EJBRemote1 is activity invokes a remote method on the remote object which is created by the EJBHome1 activity. The Release Remote Object check box is clear in Advance tab of this activity.
EJBRemote2 This activity invokes a remote method on the remote object which is created by the EJBHome activity.

As the EJB 2.x object was already released after the EJBRemote activity is completed, a null pointer exception occurs.

EJB2Remote This activity invokes a remote method on the remote object which is created by the EJBHome1 activity.
Write File This activity writes the exception details to the specified file.