16.10.2015 Views

Getting Started with WebSphere Application Server

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

90 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> Community Edition<br />

Figure 5.1 - Community Edition EJBs: The big picture<br />

5.2 Developing EJBs in Community Edition<br />

Community Edition includes OpenEJB, an open source EJB container. Since Community<br />

Edition is Java EE 5 compatible, you can create EJBs <strong>with</strong> annotations defined using the<br />

EJB 3.0 specification. Annotations are like meta-tags that you can add to your code and<br />

apply them to package declarations, type declarations, constructors, methods, fields,<br />

parameters, and variables. Annotations do not affect your code directly, but tools can<br />

inspect these annotations at compile time or runtime to generate additional constructs.<br />

Before using an EJB, define the interface and implementation class first; then, deploy it into<br />

Community Edition.<br />

Use the following steps to develop an EJB application in Community Edition:<br />

1. Create an EJB in Community Edition<br />

2. Deploy the EJB in Community Edition<br />

These steps will be described in more detail in the next sections.<br />

5.2.1 Creating an EJB<br />

To create an EJB, you need to:

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

Saved successfully!

Ooh no, something went wrong!