Chapter 4. Creating and deploying a simple EJB

Overview

This chapter will describe the practical details of writing, compiling, deploying, and testing EJBs. We start with the simplest of simple EJBs: The example in this chapter is a stateless session bean, with only two methods accessible to clients. For purposes of illustration, we will describe this process for the J2EE Reference Implementation Version 1.3. For other products, the assembly and deployment process will be different, but the coding will be the same.

The EJB example used in this chapter is straighforward, but more complex than the usual ‘hello world!’ examples. It is designed to calculate compound interest repayments on loans, and is therefore called ‘Interest.’ The Java class ...

Get Applied Enterprise JavaBeans™ Technology now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.