Testing enterprise beans in the universal test client

The server tools provide you with a Web-based Universal Test Client where you can test your enterprise beans and Java™ classes.

Prerequisites

  • Create an EJB project and add it to a new EAR project
  • Create or import an enterprise bean into your EJB project.
  • Deploy your enterprise bean. To do this right-click on the EJB project and select Deploy.

To use the Universal Test Client:

  1. Create a WebSphere® server.
  2. Add the EJB project to the server.
  3. To ensure that the server is enabled to use the Universal Test Client:
    1. In the Servers view, double-click your server. The server editor opens.
    2. For WebSphere Application Server v6.0: In the Servers view, double-click the WebSphere Application Server v6.0. Select the Overview tab and expand the Server section.
    3. For WebSphere Application Server v5.x: In the Servers view, double-click the WebSphere v5.x server. Select the Configuration tab and expand the Server Configuration section.
    4. Select the Enable universal test client check box.
    5. Close the editor and save your changes.
  4. Start a server.
  5. To start the Universal Test Client:
    1. In the Navigator view, right-click on an enterprise bean resource or an independent or stand-alone Java class.
    2. Select Run > Run on Server. The Universal Test Client opens in the Web Browser.
  6. Use the Universal Test Client to perform one or more of the following tasks:
  7. When you have finished using the Universal Test Client, close it.
Related tasks
Keeping a WebSphere server running after exiting the development environment

Related information

Creating a profile on local WebSphere v6.0 server

Setting server status updates

Setting the connection to the server

Enabling hot method replace

Reducing the startup time

Setting publishing preferences

Specifying authentication settings to a secured WebSphere Application Server v6.0

Terms of use | Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.