In this chapter we showed a working example demonstrating how to use EJBs with JMS. We examined the issues involved in using EJBs as JMS consumers for both EJB 1.1 and EJB 2.0. We modified the Case Logging application from the previous chapter so that it demonstrated a delegation solution using a specialized WebLogic Startup class for EJB 1.1, and then showed how the EJB 2.0 message-driven bean simplifies the use of EJBs with JMS when acting as asynchronous consumers of a JMS destination through the integration of the EJB container with JMS.
In the next chapter we will take a more theoretical look at the role of JMS in a clustering architecture.