blob: 20100ceb08e21b56270935ae2969a50fb12aaa50 [file] [log] [blame]
<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>A Guide to the GreenPages Sample</title><meta content="DocBook XSL Stylesheets V1.76.0" name="generator"><meta name="description" content="Spring application programmers are introduced to Virgo by installing the Virgo Tomcat Server and building and running a small application called GreenPages. Despite its simplicity, GreenPages is designed to demonstrate many different Virgo features and to act as a template from which other modular applications can be built. This guide highlights areas of interest in the sample code. This version of the guide is based on the following software versions: GreenPages Sample2.5.0.RELEASEVirgo Tomcat Server3.0.2.RELEASEApache Maven2.2.0"><link rel="home" href="index.html" title="A Guide to the GreenPages Sample"><link rel="next" href="ch01.html" title="Chapter&nbsp;1.&nbsp;Installing Pre-requisites"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table summary="Navigation header" width="100%"><tr><td align="left" width="20%">&nbsp;</td><th align="center" width="60%">&nbsp;</th><td align="right" width="20%">&nbsp;<a accesskey="n" href="ch01.html">Next</a></td></tr></table><hr></div><div class="book" title="A Guide to the GreenPages Sample"><div class="titlepage"><div><div><h1 class="title"><a name="N10001"></a>A Guide to the GreenPages Sample</h1></div><div><div class="legalnotice" title="Legal Notice"><a name="N10038"></a><p>
Copyright &copy; 2011 VMware Inc.
</p><div class="mediaobject"><img src="images/virgo-logo-small.png"></div><p>
</p><p>
All rights reserved. This document is made available under the terms of the Eclipse Public License v2.0
which is available at
<a class="ulink" href="http://www.eclipse.org/legal/epl-v20.html" target="_top">http://www.eclipse.org/legal/epl-v20.html</a>.
</p><p>Java, Oracle
are trademarks or registered
trademarks of Oracle, Inc. in the United
States and other countries.
</p><p>OSGi is a trademark or a registered trademark of the OSGi Alliance in
the United States, other countries, or both.
</p><p>Eclipse is a trademark of Eclipse Foundation, Inc.</p><p>UNIX is a registered trademark of The Open Group.</p><p>Windows is a registered trademark of Microsoft Corporation in the
United States and other countries.</p></div></div><div><div class="abstract" title="Abstract"><p class="title"><b>Abstract</b></p><p>
Spring application programmers are introduced to Virgo
by installing the Virgo Tomcat Server and building and running a small application called GreenPages.
</p><p>
Despite its simplicity, GreenPages is designed to demonstrate many different Virgo features and to
act as a template from which other modular applications can be built.
This guide highlights areas of interest in the sample code.
</p><p>
This version of the guide is based on the following software versions:
</p><table summary="Simple list" border="0" class="simplelist"><tr><td></td><td><span class="emphasis"><em>GreenPages Sample</em></span></td><td>2.5.0.RELEASE</td></tr><tr><td></td><td><span class="emphasis"><em>Virgo Tomcat Server</em></span></td><td>3.0.2.RELEASE</td></tr><tr><td></td><td><span class="emphasis"><em>Apache Maven</em></span></td><td>2.2.0</td></tr></table><p>
</p></div></div></div><hr></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="chapter"><a href="ch01.html">1. Installing Pre-requisites</a></span></dt><dd><dl><dt><span class="section"><a href="ch01.html#installation.prereqs">Installing a JDK</a></span></dt><dt><span class="section"><a href="ch01s02.html">Installing Virgo Tomcat Server</a></span></dt><dt><span class="section"><a href="ch01s03.html">Installing the Eclipse Tooling</a></span></dt><dt><span class="section"><a href="ch01s04.html">Installing Apache Maven</a></span></dt></dl></dd><dt><span class="chapter"><a href="ch02.html">2. Installing and Running GreenPages</a></span></dt><dd><dl><dt><span class="section"><a href="ch02.html#installing.greenpages.introduction">Introduction</a></span></dt><dt><span class="section"><a href="ch02s02.html">Obtaining GreenPages</a></span></dt><dt><span class="section"><a href="ch02s03.html">Building and Installing GreenPages</a></span></dt><dd><dl><dt><span class="section"><a href="ch02s03.html#installing.greenpages.building.mvn">Building with Apache Maven</a></span></dt><dt><span class="section"><a href="ch02s03.html#installing.greenpages.building.par.provided">Installing Dependencies into Virgo Tomcat Server</a></span></dt><dt><span class="section"><a href="ch02s03.html#installing.greenpages.building.db">Starting and Configuring the Database</a></span></dt><dt><span class="section"><a href="ch02s03.html#installing.greenpages.building.par">Installing and Starting GreenPages PAR</a></span></dt></dl></dd><dt><span class="section"><a href="ch02s04.html">Browsing the GreenPages Application</a></span></dt><dt><span class="section"><a href="ch02s05.html">Running GreenPages from Eclipse</a></span></dt><dd><dl><dt><span class="section"><a href="ch02s05.html#installing.greenpages.tools.importing">Importing the GreenPages Projects into Eclipse</a></span></dt><dt><span class="section"><a href="ch02s05.html#installing.greenpages.tools.configuring">Configuring Virgo Tomcat Server Target Runtime</a></span></dt><dt><span class="section"><a href="ch02s05.html#installing.greenpages.tools.run">Running GreenPages from Within Eclipse</a></span></dt></dl></dd></dl></dd><dt><span class="chapter"><a href="ch03.html">3. GreenPages Highlights</a></span></dt><dd><dl><dt><span class="section"><a href="ch03.html#highlights.wab">Web Application Bundle Highlights</a></span></dt><dd><dl><dt><span class="section"><a href="ch03.html#N10421">web.xml</a></span></dt><dt><span class="section"><a href="ch03.html#N10451">Controller Class</a></span></dt><dt><span class="section"><a href="ch03.html#N1047C">Component Scanning</a></span></dt><dt><span class="section"><a href="ch03.html#N104A6">Bundle Manifest</a></span></dt><dt><span class="section"><a href="ch03.html#N104C5">Service Injection</a></span></dt></dl></dd><dt><span class="section"><a href="ch03s02.html">Middle Tier Highlights</a></span></dt><dd><dl><dt><span class="section"><a href="ch03s02.html#N104EE">DataSource</a></span></dt><dt><span class="section"><a href="ch03s02.html#N10513">EntityManager</a></span></dt><dt><span class="section"><a href="ch03s02.html#N10575">Transaction Management</a></span></dt></dl></dd><dt><span class="section"><a href="ch03s03.html">Testing Highlights</a></span></dt><dd><dl><dt><span class="section"><a href="ch03s03.html#N105B1">Single Bundle Integration Test</a></span></dt><dt><span class="section"><a href="ch03s03.html#N105F5">Multi Bundle Integration Test</a></span></dt></dl></dd><dt><span class="section"><a href="ch03s04.html">Automated Build Highlights</a></span></dt><dd><dl><dt><span class="section"><a href="ch03s04.html#N10642">Building the PAR</a></span></dt><dt><span class="section"><a href="ch03s04.html#N10679">Obtaining Dependencies</a></span></dt><dt><span class="section"><a href="ch03s04.html#N106A0">Automatically Running the Tests</a></span></dt></dl></dd></dl></dd><dt><span class="appendix"><a href="apa.html">A. Further Resources</a></span></dt><dd><dl><dt><span class="section"><a href="apa.html#further.resources.projects">Projects</a></span></dt><dt><span class="section"><a href="apas02.html">Documentation</a></span></dt></dl></dd></dl></div></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%">&nbsp;</td><td align="center" width="20%">&nbsp;</td><td align="right" width="40%">&nbsp;<a accesskey="n" href="ch01.html">Next</a></td></tr></table></div></body></html>