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.

3.8 Exercises ............................................................................................................... 63<br />

3.9 Summary ................................................................................................................ 63<br />

3.10 Review questions ................................................................................................. 63<br />

Chapter 4 – Working <strong>with</strong> databases ............................................................................ 65<br />

4.1 Community Edition database connectivity: The big picture ................................... 65<br />

4.2 Steps to work <strong>with</strong> a database in Community Edition ............................................ 66<br />

4.2.1 Creating a database ....................................................................................... 66<br />

4.2.2 Configuring and deploying a database pool ................................................... 67<br />

4.2.3 Executing SQL statements to load some data ............................................... 73<br />

4.3 Developing a Web application to access a database ............................................ 75<br />

4.3.1 Create a Dynamic Web Project ...................................................................... 75<br />

4.3.2 Create a JSP and configure the data source reference ................................. 77<br />

4.3.3 Deploy and run the project on the Community Edition server ........................ 83<br />

4.4 Support for other databases in Community Edition ............................................... 86<br />

4.5 Summary ................................................................................................................ 86<br />

4.6 Exercises ............................................................................................................... 86<br />

4.7 Review questions ................................................................................................... 87<br />

Chapter 5 – Enterprise Java Beans ............................................................................... 89<br />

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

5.2 Developing EJBs in Community Edition ................................................................ 90<br />

5.2.1 Creating an EJB .............................................................................................. 90<br />

5.2.2 Deploying an EJB ........................................................................................... 92<br />

5.3 Working <strong>with</strong> EJBs in Community Edition .............................................................. 93<br />

5.3.1 Using EJBs in a servlet ................................................................................... 93<br />

5.3.2 Using an EJB in an application client ............................................................. 95<br />

5.4 Java Persistence API Entities Development in Community Edition ...................... 97<br />

5.4.1 Creating JPA entities manually ....................................................................... 97<br />

5.4.2 Generating JPA entities from tables of a database ........................................ 98<br />

5.5 Summary ................................................................................................................ 99<br />

5.6 Exercises ............................................................................................................... 99<br />

5.7 Review questions ................................................................................................. 107<br />

Chapter 6 – Messaging ................................................................................................. 109<br />

6.1 Community Edition Messaging: The big picture .................................................. 109<br />

6.2 Java Message Service ......................................................................................... 110<br />

6.2.1 JMS application roles .................................................................................... 110<br />

6.2.2 JMS application models ................................................................................ 111<br />

6.2.3 JMS API ........................................................................................................ 112<br />

6.2.4 JMS application development steps in Community Edition .......................... 112<br />

6.3 Configuring a JMS resource group in Community Edition ................................... 113<br />

6.3.1 Creating a JMS resource group .................................................................... 113<br />

6.3.2 Creating a JMS connection factory ............................................................... 114<br />

6.3.3 Creating a JMS queue and topic destinations .............................................. 116<br />

6.3.4 Stop, restart, or uninstall an installed JMS resource group. ......................... 118

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

Saved successfully!

Ooh no, something went wrong!