The EJB Beans pane of the Universal Test Client allows you to invoke
methods on EJB classes, as well as other objects.
- In the Universal Test Client on the left pane, expand the EJB
Beans or Object section to display all
the methods.
- In the left pane of the Universal Test Client, select a method. The Parameters pane (right pane of the Universal Test Client) displays
all the parameters for that particular method.
- (Optional) If the parameter is a primitive type, the field is enabled
allowing you to change its value.
- (Optional) If the parameter is a complex type, such as a Collection,
Enumeration, or Iterator, select an existing object or null from
the Object drop-down list (for example if you are testing a JavaBean), or
select a constructor from the Constructors drop-down list, and expand the
parameter until you are able to enter a value in the Value column.
- Click the Invoke button to invoke the method. The Results section displays one of the following results of the method
invocation depending on the conditions:
- Displays the value if the method returned a value. It also displays a
Work with object link that allows you to place that object into the
EJB Beans, Objects or Classes pane. If more than one object is returned (for
example a collection), it will also display a Work with Contained
Objects link.
- Displays an error message if the method threw an exception.
- Displays a Method executed successfully message
if the method completes successfully but did not have any value to return.