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.

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

Figure 5.7 - Create an enterprise application project<br />

Step 2:<br />

Right click on ejb-studentear -> Properties -> Project Reference, select all the projects<br />

there.<br />

Step 3:<br />

Right click ejb- studentear -> Properties ->Java EE Module Dependency, select all the<br />

projects there.<br />

Step 4:<br />

In project ejb-studentear, expand META-INF under EarContent, open the file geronimoapplication.xml<br />

and add the snippet in Listing 5.17 into the file. It will add dependency for<br />

database pool deployed before.<br />

<br />

……<br />

<br />

<br />

console.dbpool<br />

jdbc_Student<br />

<br />

<br />

<br />

Listing 5.17- add dependency for the database pool in geronimo-application.xml

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

Saved successfully!

Ooh no, something went wrong!