10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Contents<br />

18<br />

Deciding on Remote or Local Access ....................................................................................... 636<br />

Web Service Clients ................................................................................................................... 637<br />

Method Parameters and Access ................................................................................................ 637<br />

<strong>The</strong> Contents of an Enterprise Bean ............................................................................................... 638<br />

Naming Conventions for Enterprise Beans ................................................................................... 639<br />

<strong>The</strong> Life Cycles of Enterprise Beans ................................................................................................ 639<br />

<strong>The</strong> Life Cycle of a Stateful Session Bean ................................................................................ 639<br />

<strong>The</strong> Life Cycle of a Stateless Session Bean ............................................................................... 640<br />

<strong>The</strong> Life Cycle of a Message-Driven Bean ............................................................................... 641<br />

Further Information about Enterprise Beans ................................................................................ 642<br />

21 Getting Started with Enterprise Beans ..........................................................................................643<br />

Creating the Enterprise Bean ........................................................................................................... 643<br />

Coding the Enterprise Bean ...................................................................................................... 644<br />

Compiling and Packaging the converter Example .............................................................. 645<br />

Creating the converter Application Client ................................................................................... 646<br />

Coding the converter Application Client .............................................................................. 646<br />

Compiling the converter Application Client ........................................................................ 648<br />

Creating the converter Web Client ............................................................................................... 648<br />

Coding the converter Web Client .......................................................................................... 648<br />

Compiling the converter Web Client .................................................................................... 650<br />

Deploying the converter <strong>Java</strong> <strong>EE</strong> Application .............................................................................. 650<br />

Deploying the converter Example Using NetBeans IDE .................................................... 650<br />

Deploying the converter Example Using Ant ...................................................................... 650<br />

Running the converter Application Client ................................................................................... 650<br />

Running the converter Application Client Using NetBeans IDE ...................................... 651<br />

Running the converter Application Client Using Ant ........................................................ 651<br />

Running the converter Web Client ............................................................................................... 651<br />

Modifying the <strong>Java</strong> <strong>EE</strong> Application ................................................................................................. 652<br />

Modifying a Class File ................................................................................................................ 652<br />

22 Session Bean Examples ....................................................................................................................655<br />

<strong>The</strong> cart Example ............................................................................................................................. 655<br />

<strong>The</strong> Business Interface ............................................................................................................... 656<br />

Session Bean Class ..................................................................................................................... 656<br />

<strong>The</strong> <strong>Java</strong> <strong>EE</strong> 5<strong>Tutorial</strong> • June 2010

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

Saved successfully!

Ooh no, something went wrong!