16.10.2015 Views

Getting Started with WebSphere Application Server

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5<br />

Chapter 5 – Enterprise Java Beans<br />

An Enterprise Java Bean (EJB) is a mechanism to encapsulate business logic of an<br />

application. Community Edition supports the latest specification, EJB 3.0. This chapter<br />

discusses the development of EJBs in Community Edition.<br />

In this chapter you will learn about:<br />

• How to develop session beans in Community Edition<br />

• How to develop an application client in Community Edition<br />

• How to develop JPA-based applications in Community Edition<br />

5.1 Community Edition Enterprise Java Beans: The big picture<br />

Figure 5.1 provides an overview of EJB development in Community Edition. In the figure,<br />

there is an Admin Client on the right side which represents the Community Edition Admin<br />

console or the Eclipse IDE from where a user is managing the EJB application. As shown<br />

in (1), first, developers create EJBs and deploy them into the server. Then, developers<br />

make use of the EJBs by invoking them in a servlet (2) or by JNDI naming in an application<br />

client (3) or a Plain Old Java Object (POJO) client (4). As part of EJB specification, you can<br />

also create JPA-based applications (5) and deploy them <strong>with</strong> Community Edition.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!