在通用测试客户机中测试企业 bean

服务器工具提供了基于 Web 的“通用测试客户机”,在该客户机中,您可以测试企业 bean 和 Java™ 类。

先决条件

  • 创建 EJB 项目并将它添加至新的 EAR 项目。
  • 创建企业 bean 或将其导入 EJB 项目中。
  • 部署企业 bean。要完成此任务,右键单击 EJB 项目并选择部署

要使用“通用测试客户机”:

  1. 创建 WebSphere® 服务器
  2. 将 EJB 项目添加至服务器
  3. 要确保启用了服务器来使用“通用测试客户机”:
    1. 在“服务器”视图中,双击服务器。 服务器编辑器就会打开。
    2. 对于 WebSphere Application Server V6.0:在“服务器”视图中,双击 WebSphere Application Server V6.0。选择概述选项卡并展开“服务器”部分。
    3. 对于 WebSphere Application Server V5.x:在“服务器”视图中,双击 WebSphere V5.x 服务器。选择配置选项卡并展开“服务器配置”部分。
    4. 选择启用通用测试客户机复选框。
    5. 关闭编辑器并保存更改。
  4. 启动服务器
  5. 要启动“通用测试客户机”:
    1. 在“导航器”视图中,右键单击企业 bean 资源或者独立的 Java 类。
    2. 选择运行 > 在服务器上运行 “通用测试客户机”将在 Web 浏览器中打开。
  6. 使用“通用测试客户机”执行下列其中一个或多个任务:
  7. 当完成使用“通用测试客户机”时关闭它。
相关任务
在退出开发环境之后,使 WebSphere 服务器一直保持运行
相关信息
Creating a profile on local WebSphere v6.0 server
Setting server status updates
Setting the connection to the server
Enabling hot method replace
Setting publishing preferences
Specifying authentication settings to a secured WebSphere Application Server v6.0
使用条款 | 反馈
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.