Presented by developerWorks, your source for great tutorials
ibm.com/developerWorks
example is not real until you can get it running, and you can look over the code. With
this in mind, I divided the tutorial examples into a incrementally increasing complex
example, each with automated build files. Thus when you first go over CMP, you do not
have to worry about EJB QL, etc. Since the tutorials get incrementally more complex, I
suggest that you do them in the right order.
The examples are as follows:
The first example introduces you to the concepts of CMP including defining CMP
fields in the deployment descriptor. This example also shows how to reference an
enterprise bean from another bean, and how to reference an enterprise bean from a
client. This example only has two beans: the
UserBean
and the
UserManagementBean
. The example is in this first tutorial, part one
The second example adds a
findAll()
method to the home interface using
EJB QL. This is just a slight change from the last example to demonstrate EJB QL. It
has the same number of beans. This example is also in the current tutorial, part one.
The third example covers adding the
UserInfoBean
and creating a one to one
bidirectional relationship between the
UserBean
and the
UserInfoBean
. This
example is in the second tutorial, part two.
In the fourth example, I cover adding the
RoleBean
, and creating a many to many,
unidirectional, relationship between
UserBean
s and
RoleBeans
. This example is in
the second tutorial, part two.
In the fifth example, I cover adding the
GroupBean
, and creating a one to many,
bidirectional relationship, between
GroupBean
and UserBeans. This example is in
the second tutorial, part two.
The last example extends the fifth and adds EJB QL to demonstrate naviagating
collections and sets of objects. This example is in the third tutorial, part three.
The entire tutorial is code centric and every part of the code is covered: client, entity
beans and session bean.
Introducing EJB CMP/CMR, Part 1 of 2
Page 11 of 48






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

tomcat web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved