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.

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

<br />

Listing 4.10 – Full content of WEB-INF/web.xml<br />

Add an environment dependency to the data source in WEB-INF/geronimo-web.xml.<br />

The dependency definition tells Community Edition where to find the data source physical<br />

definition to map the logical name for the application. The full file content is as shown in<br />

Listing 4.11.<br />

<br />

<br />

<br />

<br />

default<br />

chapter4-databases-dbdemo<br />

1.0<br />

car<br />

<br />

<br />

<br />

console.dbpool<br />

jdbc_demods<br />

<br />

<br />

<br />

<br />

<br />

/chapter4-databases-dbdemo<br />

<br />

jdbc/DataSource<br />

jdbc/demods<br />

<br />

<br />

Listing 4.11 – Full content of WEB-INF/geronimo-web.xml<br />

2. Define a server runtime in Eclipse as described in Chapter 3.

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

Saved successfully!

Ooh no, something went wrong!