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 ...

Get EJB 2.0 Development with WebSphere Studio Application Developer now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.