Introducing Enterprise
JavaBeansTM (a Tutorial)
The intention of this Enterprise JavaBeans (EJB) tutorial is to demonstrate
how easy it is to build server side java components using the EJB component
model. In fact, ease-of-use and ease-of-programming are the key words,
and this tutorial should begin to demonstrate how to program and "deploy"
Enterprise JavaBeans. By working through this tutorial the user will become
familiar with the fundamental pieces of the EJB model and by working through
the supplied example the user will create the EJB version of the "Hello
World" program.
Who should read this tutorial? The document is designed to assist EJB developers, programmers who are familiar with at least the basic concepts of the EJB programming model. Non (JavaTM) programmers, or those completely unfamiliar with EJB should refer to the Java tutorial and the Enterprise JavaBeans White Paper . This tutorial is not a replacement for reading the Enterprise JavaBeans
specification instead it is designed to enhance your understanding of
the specification and the EJB model by providing concrete example(s) and step-by-step guidelines
for building and using Enterprise JavaBeans applications.
About the example(s) The supplied example is a complete stateless session enterprise JavaBean with source for all components. The example supplied is built assuming access to the Weblogic Tengah EJB server, this is mainly for convenience as an evaluation version of this server is available on the WWW (see step #1). The code for the bean should work in any EJB compliant container/server and the only changes required should be in the deployment process and perhaps the client code. The diagram below describes the architecture of the DemoBean example and it's client program.
|