Browse Prior Art Database

A Unit-test Environment for Enterprise Java Beans Disclosure Number: IPCOM000014141D
Original Publication Date: 1999-Dec-01
Included in the Prior Art Database: 2003-Jun-19

Publishing Venue


Related People

Dave Stokes Victor Chan Leonard Theivendra Shirley Chiang


Unit-testing Enterprise Java Beans (EJBs) can be a time-consuming task. An EJB instance is deployed and managed within an EJB server process separate from the client which accesses them. Before unit-testing an EJB, the user must deploy the EJB to an EJB server. Accessing the EJB instance requires that the user write a client program which will obtain a reference to a name server, locate the EJB server of interest, obtain a reference to the EJB instance, and then execute the EJB methods to be unit-tested. The user must also update the client program every time that the EJB method signatures change. This disclosure describes a unit-test environment that enables a user to quickly and easily deploy an EJB to an EJB server and unit-test the EJB methods without having to create a client application. The unit-test environment operates within the VisualAge for Java Integrated Development Environment. Following creation of EJBs, the user may select an EJB group to be added to the Server Configuration page: This page allows the user to start and stop name services (Location Service Daemon and Persistent Name Server) and an EJB Server. When the EJB server is started, all the beans associated with it (those in the left-hand pane) are automatically deployed. The unit-test environment provides a mechanism to allow the user to generate a client program, called the Test Client, to perform unit-testing. The user can now select an EJB from the left-hand pane and launch the Test Client program: