The steps we will follow in this tutorial to build the DemoBean EJB
are:
- Install an EJBserver.
- Specify the "Remote interface"
- Specify the "Home interface"
- Write the EJBbean itself highlighting the
focus on the business logic.
- Create the ejb-jar file
- Deploy the DemoBean
- Write a client java application.
These really are the steps required to implement just about any EJB
and although with all that is written about EJB's so far it seems to
be a lot more complex the complexity is for the server/container provider
to worry about, not, I repeat, NOT the EJB provider.
f the EJB architecture, see the
Enterprise
JavaBeans White Paper.
This tutorial is not a replacement for reading the Enterprise JavaBeans
specification. Rather, it is designed to enhance your understanding of
the specification by providing concrete examples, and step-by-step guidelines
for building and using Enterprise JavaBeans.
In the example code we have referred to and used examples initially from
the WebLogic server, and as further implementations come along we will add
these to the tutorial.
This is part #1
This tutorial introduces a stateless session bean example, which
is functionally equivalent to the perennial "Hello world"
program. It is the simplest of all enterprise beans to write, and
as such, allows us to demonstrate the model, with the minimum complexity.
Further parts of this paper will address the other bean type, that
is, stateful session bean Managed Entity and Container managed entity
beans. It is our intention to include tutorial details on other
technologies, such as SQLJ, when they are available, and as time
and resources permit.
Click here to begin the tutorial or
here to view the Table of Contents.