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