Testing the enterprise bean
In “Preparing the WebSphere test environment” on page 387 we discussed how to set up a server for testing.
Now we can start the WebSphere test environment and test the EJB:
- In the Servers view of the Server perspective, start the EjbbankServer and wait until the server is ready. The Console view opens and you should see that the data source is allocated, the Web and EJB modules are loaded, and the message Server server1 open for e-business is displayed.
- Select the ItsoBank5CmpEJB project and Run on Server (context).
- In the Server Selection window, make sure that the EjbbankServer is preselected as the existing server. Select Do not show this dialog next time (set this server as the preferred server) and click Finish ...