Testing the MDB

To test the MDB with the servlet client, start the EjbbankServer and wait until the server is ready.

Note

We did install the embedded messaging component (WebSphere MQ) of Application Developer. However, the sample should work as well without WebSphere MQ; the built-in JMS server (MQ Simulator) provides a subset of the function that is enough for this example.

Running the servlet

Select the MdbTester servlet in the ItsoBank5Web project and Run on Server (context). A sample output is shown in Figure 16-18.

Figure 16-18. MDB client servlet output

The server console shows a number of test output lines that we included in the ...

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.