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.

4<br />

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

Database connectivity is a key feature of application servers as most of applications need<br />

to work <strong>with</strong> data. Community Edition provides developers <strong>with</strong> convenient functions to<br />

connect to various databases and execute SQL statements using Java Database<br />

Connectivity (JDBC). This chapter uses DB2 Express-C, the free version of DB2, as the<br />

database provider.<br />

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

• How to configure a database pool<br />

• How to query data in a Web application<br />

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

Figure 4.1 provides an overview of the process followed to access a database.<br />

Figure 4.1 - Database connectivity: The big picture

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

Saved successfully!

Ooh no, something went wrong!