<html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Chapter 9. Developing PARs</title><meta content="DocBook XSL Stylesheets V1.76.0" name="generator"><link rel="home" href="index.html" title="Virgo Tools Guide"><link rel="up" href="index.html" title="Virgo Tools Guide"><link rel="prev" href="ch08s02.html" title="Discovery of Plan files in the workspace"><link rel="next" href="ch10.html" title="Chapter 10. Deploying Applications"></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%"><a accesskey="p" href="ch08s02.html">Prev</a> </td><th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="ch10.html">Next</a></td></tr></table><hr></div><div class="chapter" title="Chapter 9. Developing PARs"><div class="titlepage"><div><div><h2 class="title"><a name="pars"></a>Chapter 9. Developing PARs</h2></div></div></div><p>In Virgo, applications consisting of multiple bundles can be packaged as a PAR. | |
</p><p> | |
To create a PAR, right-click in the | |
<span class="emphasis"><em>Package Explorer</em></span> | |
and select | |
<span class="guimenu">New</span> → <span class="guimenuitem">Project…</span> | |
. In the dialog that opens select | |
<span class="guimenu">EclipseRT</span> → <span class="guimenuitem">PAR Project</span> | |
and press | |
<span class="emphasis"><em>Next</em></span> | |
. | |
</p><p> | |
In the New PAR Project dialog, ensure the | |
<span class="emphasis"><em>Use default location</em></span> | |
option is unchecked, enter a suitable name for the project, set the location to a suitable directory, and press | |
<span class="emphasis"><em>Next</em></span> | |
. For example, the Greenpages sample PAR project would look like this: | |
</p><div class="mediaobject" align="center"><img src="images/create-par-project.png" align="middle"></div><p> | |
</p><p> | |
In the next dialog, some of the PAR properties are pre-populated. Set the Application Name and the Version as | |
appropriate, then ensure that the | |
<span class="emphasis"><em>Target Runtime</em></span> | |
is set to | |
<span class="emphasis"><em>Virgo Web Server (Runtime) ...</em></span> | |
and press | |
<span class="emphasis"><em>Next</em></span> | |
. For example: | |
</p><div class="mediaobject" align="center"><img src="images/par-content.png" align="middle"></div><p> | |
</p><p> | |
In the next dialog, select the bundles so that they are contained in the PAR and press | |
<span class="emphasis"><em>Finish</em></span> | |
. For example: | |
</p><div class="mediaobject" align="center"><img src="images/bundle-references.png" align="middle"></div><p> | |
</p><p>The PAR project is then created. | |
</p></div><div class="navfooter"><hr><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ch08s02.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="ch10.html">Next</a></td></tr><tr><td valign="top" align="left" width="40%"> </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td valign="top" align="right" width="40%"> </td></tr></table></div></body></html> |