Author: steveh Date: Thu Nov 4 10:12:18 2004 New Revision: 56614 Added: incubator/beehive/site/build/site/wsm/sample_Dashboard.html (contents, props changed) Log: Adding instructions on running dashboard.
Added: incubator/beehive/site/build/site/wsm/sample_Dashboard.html ============================================================================== --- (empty file) +++ incubator/beehive/site/build/site/wsm/sample_Dashboard.html Thu Nov 4 10:12:18 2004 @@ -0,0 +1,404 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<html> +<head> +<META http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>Beehive Web Service Samples: Petstore Dashboard</title> +<link type="text/css" href="../skin/page.css" rel="stylesheet"> +</head> +<body text="#000000" bgcolor="#FFFFFF"> +<!--================= start Navigation Path ==================--> +<table summary="navigation path" width="100%" border="0" cellpadding="0" cellspacing="0"> +<tr> +<td nowrap="nowrap" valign="middle" bgcolor="#CFDCED" height="20"><img height="1" width="5" alt="" src="../skin/images/spacer.gif" class="spacer"><!--===== breadcrumb trail (javascript-generated) ====--><font size="2" face="Arial, Helvetica, Sans-serif"><script src="../skin/breadcrumbs.js" language="JavaScript" type="text/javascript"></script></font></td> +</tr> +<tr> +<td bgcolor="#4C6C8F" height="2"><img height="2" width="2" alt="" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +</table> +<!--================= end Navigation Path ==================--> +<!--================= start Banner ==================--> +<table summary="header with logos" width="100%" border="0" cellpadding="0" cellspacing="0"> +<tr> +<!--================= start Group Logo ==================--> +<td bgcolor="#294563"><a href="http://incubator.apache.org/"><img border="0" class="logoImage" alt="Apache Incubator" src="../images/_incubator-logo.gif"></a></td> +<!--================= end Group Logo ==================--> +<!--================= start Project Logo ==================--><td width="100%" align="center" bgcolor="#294563"><a href="http://incubator.apache.org/beehive"><img border="0" class="logoImage" alt="Apache Beehive" src="../images/_beehive_logo_wide.gif"></a></td> +<!--================= end Project Logo ==================--> +<!--================= start Search ==================--><td valign="top" rowspan="2" bgcolor="#294563"> +<form target="_blank" action="http://www.google.com/search" method="get"> +<table summary="search" border="0" cellspacing="0" cellpadding="0" bgcolor="#4C6C8F"> +<tr> +<td colspan="3"><img height="10" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +<tr> +<td><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td nowrap="nowrap"><input value="incubator.apache.org" name="sitesearch" type="hidden"><input size="15" name="q" id="query" type="text"><img height="1" width="5" alt="" src="../skin/images/spacer.gif" class="spacer"><input name="Search" value="Search" type="submit"> +<br> +<font face="Arial, Helvetica, Sans-serif" size="2" color="white"> + the Apache Beehive site + + + </font></td><td><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +<tr> +<td><img alt="" border="0" height="10" width="9" src="../skin/images/search-left.gif"></td><td><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td><img alt="" border="0" height="10" width="9" src="../skin/images/search-right.gif"></td> +</tr> +</table> +</form> +</td> +<!--================= start Search ==================--><td bgcolor="#294563"><img height="10" width="10" alt="" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +<tr> +<td valign="bottom" bgcolor="#294563" colspan="2"> +<!--================= start Tabs ==================--> +<div class="tab"> +<table summary="tab bar" border="0" cellpadding="0" cellspacing="0"> +<tr> +<td width="6"><img alt="" height="8" width="6" src="../skin/images/spacer.gif"></td><td valign="bottom"> +<table summary="selected tab" style="height: 1.8em" border="0" cellpadding="0" cellspacing="0"> +<tr> +<td valign="top" width="5" bgcolor="#4C6C8F"><img height="5" width="5" alt="" src="../skin/images/tabSel-left.gif"></td><td valign="middle" bgcolor="#4C6C8F"><font color="#ffffff" size="2" face="Arial, Helvetica, Sans-serif"><b><a class="base-selected" href="../index.html">Home</a></b></font></td><td valign="top" width="5" bgcolor="#4C6C8F"><img height="5" width="5" alt="" src="../skin/images/tabSel-right.gif"></td> +</tr> +</table> +</td> +</tr> +</table> +</div> +<!--================= end Tabs ==================--> +</td><td bgcolor="#294563"><img alt="" width="1" height="1" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +<tr> +<td bgcolor="#4C6C8F" colspan="4"><img width="1" height="10" alt="" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +</table> +<!--================= end Banner ==================--> +<!--================= start Menu, NavBar, Content ==================--> +<table summary="page content" bgcolor="#ffffff" width="100%" border="0" cellpadding="0" cellspacing="0"> +<tr> +<td valign="top"> +<table summary="menu" border="0" cellspacing="0" cellpadding="0"> +<tr> +<!--================= start left top NavBar ==================--> +<td rowspan="3" valign="top"> +<table summary="blue line" border="0" cellpadding="0" cellspacing="0"> +<tr> +<td bgcolor="#294563"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +<tr> +<td bgcolor="#CFDCED"><font color="#4C6C8F" size="4" face="Arial, Helvetica, Sans-serif"> </font></td> +</tr> +<tr> +<td bgcolor="#294563"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +</table> +</td> +<!--================= end left top NavBar ==================--><td bgcolor="#294563"><img width="1" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td valign="bottom" bgcolor="#4C6C8F"><img width="10" height="10" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td nowrap="nowrap" valign="top" bgcolor="#4C6C8F"> +<!--================= start Menu items ==================--> +<div class="menu"> +<ul> +<li> +<font color="#CFDCED">Beehive</font> +<ul> + +<li> +<a href="../index.html">Welcome</a> +</li> + +<li> +<a href="../license.html">License</a> +</li> + +<li> +<a href="../downloads.html">Downloads</a> +</li> + +<li> +<a href="../faq.html">FAQ</a> +</li> + +</ul> +</li> +<li> +<font color="#CFDCED">Documentation</font> +<ul> + + +<li> +<font color="#CFDCED">Page Flows</font> +<ul> + +<li> +<a href="../pageflow/tutorial_pageflow.html">Page Flow Tutorial</a> +</li> + +<li> +<a href="../pageflow/guide.html">Page Flow Programming</a> +</li> + +</ul> +</li> + +<li> +<font color="#CFDCED">Controls</font> +<ul> + +<li> +<a href="../controls/tutorial_controls.html">Control Tutorial</a> +</li> + +<li> +<a href="../Controls.html">Control Programming</a> +</li> + +</ul> +</li> + +<li> +<font color="#CFDCED">Web Services</font> +<ul> + +<li> +<a href="../wsm/tutorial_wsm.html">Web Services Tutorial</a> +</li> + +<li> +<a href="../webservices.html">Web Services (JSR 181)</a> +</li> + +</ul> +</li> + +<li> +<font color="#CFDCED">Samples</font> +<ul> + +<li> +<a href="../jpetstore.html">Petstore</a> +</li> + +<li> +<span class="sel"><font color="#ffcc00">Petstore Dashboard</font></span> +</li> + +<li> +<a href="../wsm/sample_AddressBook.html">AddressBook</a> +</li> + +</ul> +</li> + +<li> +<a href="../reference.html">Reference Docs</a> +</li> + + + +</ul> +</li> +<li> +<font color="#CFDCED">Community</font> +<ul> + +<li> +<a href="../mailinglists.html">Mailing Lists</a> +</li> + +<li> +<a href="../contributors.html">Contributors</a> +</li> + +</ul> +</li> +</ul> +</div> +<!--================= end Menu items ==================--> +</td><td valign="bottom" bgcolor="#4C6C8F"><img width="10" height="10" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td bgcolor="#294563"><img width="1" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +<tr> +<td valign="bottom" align="left" colspan="2" rowspan="2" bgcolor="#4C6C8F"><img height="10" width="10" border="0" alt="" src="../skin/images/menu-left.gif"></td><td bgcolor="#4C6C8F"><img height="10" width="10" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td valign="bottom" align="right" colspan="2" rowspan="2" bgcolor="#4C6C8F"><img height="10" width="10" border="0" alt="" src="../skin/images/menu-right.gif"></td> +</tr> +<tr> +<td height="1" bgcolor="#294563"><img width="1" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +</table> +</td><td valign="top" width="100%"> +<table summary="content" width="100%" border="0" cellpadding="0" cellspacing="0"> +<!--================= start middle NavBar ==================--> +<tr> +<td colspan="4" bgcolor="#294563"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +<tr> +<td align="left" width="10" bgcolor="#CFDCED"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td align="left" width="50%" bgcolor="#CFDCED"><font color="#4C6C8F" size="3" face="Arial, Helvetica, Sans-serif"> + + + </font><img width="10" height="8" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td align="right" width="50%" bgcolor="#CFDCED"><font color="#4C6C8F" size="3" face="Arial, Helvetica, Sans-serif"> + + + </font><img width="10" height="8" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td width="10" bgcolor="#CFDCED"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +<tr> +<td colspan="4" bgcolor="#294563"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +<!--================= end middle NavBar ==================--> +<!--================= start Content==================--> +<tr> +<td align="left" width="10"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td><td colspan="2" align="left" width="100%"> +<div class="content"> +<table class="title" summary=""> +<tr> +<td valign="middle"> +<h1>Beehive Web Service Samples: Petstore Dashboard</h1> +</td> +</tr> +</table> +<ul class="minitoc"> +<li> +<a href="#The+Petstore+Dashboard+Sample">The Petstore Dashboard Sample</a> +</li> +<li> +<a href="#Running+the+Dashboard+Sample">Running the Dashboard Sample</a> +<ul class="minitoc"> +<li> +<a href="#Requirements+for+Running+the+Sample">Requirements for Running the Sample</a> +</li> +<li> +<a href="#Setting+up+the+Environment">Setting up the Environment</a> +</li> +<li> +<a href="#Undeploy+Petstore">Undeploy Petstore</a> +</li> +<li> +<a href="#Download+Required+JAR+Files">Download Required JAR Files</a> +</li> +<li> +<a href="#Initialize%2C+Build+and+Deploy+Petstore">Initialize, Build and Deploy Petstore</a> +</li> +</ul> +</li> +</ul> + +<a name="N1000C"></a><a name="The+Petstore+Dashboard+Sample"></a> +<h3>The Petstore Dashboard Sample</h3> +<div style="margin-left: 0 ; border: 2px"> +<p>Petstore has both a web site and a web service interface. The web site is designed for customer access; the web service is for employee access. Through the web service, employees update the prices and inventory seen on the customer web site. The Petstore Dashboard is a Swing client application for this web service. Updates made on the Dashboard are passed to the web service and ultimately the updates appear on the Petstore web site. +</p> +</div> + + +<a name="N10018"></a><a name="Running+the+Dashboard+Sample"></a> +<h3>Running the Dashboard Sample</h3> +<div style="margin-left: 0 ; border: 2px"> +<a name="N1001E"></a><a name="Requirements+for+Running+the+Sample"></a> +<h4>Requirements for Running the Sample</h4> +<div style="margin-left: 0 ; border: 2px"> +<p>To run the Sample, you need:</p> +<ul> + +<li>Beehive</li> + +<li>Tomcat 5</li> + +<li>J2SE 5</li> + +<li>Ant 1.6.2</li> + +<li>activation.jar (details below)</li> + +<li>mailapi.jar (details below)</li> + +</ul> +</div> +<a name="N1003D"></a><a name="Setting+up+the+Environment"></a> +<h4>Setting up the Environment</h4> +<div style="margin-left: 0 ; border: 2px"> +<p>Download a Beehive distribution archive, and explode it on your local machine. In the instructions below, the top level directory of the exploded Beehive archive is called '<span class="codefrag"><dist-dir></span>'. For example if you explode the archive into </p> +<pre class="code">C:/beehive</pre> +<p>then</p> +<pre class="code"><dist-dir> = C:/beehive/apache-beehive-incubating-alpha-xxx x`</pre> +<p>Edit <span class="codefrag"><dist-dir>/beehiveUser.cmd|sh</span> to match your local environment. The following four paths must resolve to paths on your machine.</p> +<pre class="code"> + BEEHIVE_HOME + JAVA_HOME + CATALINA_HOME + ANT_HOME +</pre> +<p> + +<span class="codefrag">BEEHIVE_HOME</span> should refer to <dist-dir>:</p> +<pre class="code"> +REM the root of Beehive distribution +set BEEHIVE_HOME=C:\beehive\apache-beehive-incubating-alpha-xxx +</pre> +<p>After editing the file, open a command shell and run <span class="codefrag">beehiveUser.cmd|sh</span>.</p> +</div> +<a name="N10073"></a><a name="Undeploy+Petstore"></a> +<h4>Undeploy Petstore</h4> +<div style="margin-left: 0 ; border: 2px"> +<p>If you have previously deployed Petstore, you must undeploy it now. (This allows you to recompile the Petstore source, which occurs in the next step.)</p> +<pre class="code"> ant -Dwebapp.dir=BEEHIVE_HOME/samples/petstoreWeb -Dcontext.path=petstoreWeb -f ant/buildWebapp.xml undeploy</pre> +</div> +<a name="N10082"></a><a name="Download+Required+JAR+Files"></a> +<h4>Download Required JAR Files</h4> +<div style="margin-left: 0 ; border: 2px"> +<p> Before you can build Petstore Dashboard you must download 1) activation.jar and 2) mailapi.jar.</p> +<p> 1) download activation.jar (<a href="http://java.sun.com/products/javabeans/glasgow/jaf.html">http://java.sun.com/products/javabeans/glasgow/jaf.html</a>) </p> +<p>Note that activation.jar is archived in the JAF 1.0.2 distribution ZIP file. Download the JAF 1.0.2 ZIP, extract activation.jar, and copy activation.jar into both </p> +<pre class="code"> BEEHIVE_HOME/samples/PetstoreDashboard/lib/ </pre> +<p>and</p> +<pre class="code"> BEEHIVE_HOME/samples/petstoreWeb/WEB-INF/lib</pre> +<p>2) mailapi.jar (<a href="http://java.sun.com/products/javamail/downloads/index.html">http://java.sun.com/products/javamail/downloads/index.html</a>)</p> +<p> mailapi.jar is archived in the JavaMail 1.3.2 distribution ZIP file. Download the JavaMail 1.3.2 ZIP, extract mailapi.jar, and copy mailapi.jar into both </p> +<pre class="code"> BEEHIVE_HOME/samples/PetstoreDashboard/lib/ </pre> +<p>and</p> +<pre class="code"> BEEHIVE_HOME/samples/petstoreWeb/WEB-INF/lib</pre> +</div> +<a name="N100BA"></a><a name="Initialize%2C+Build+and+Deploy+Petstore"></a> +<h4>Initialize, Build and Deploy Petstore</h4> +<div style="margin-left: 0 ; border: 2px"> +<p>To build and deploy Petstore, enter the following Ant command:</p> +<pre class="code">ant + -Dwebapp.dir=%BEEHIVE_HOME%/samples/petstoreWeb + -Dcontext.path=petstoreWeb + -f ant/buildWebapp.xml + deploy.beehive.webapp.runtime build.webapp deploy + </pre> +<p>To launch the Dashboard:</p> +<p>cd to: <span class="codefrag">BEEHIVE_HOME/samples/PetstoreDashboard</span> +</p> +<p>At the command line, enter <span class="codefrag">ant</span> +</p> +<p></p> +<p>The Swing application comes up in its own window. Click on the different categories and modify price and quantity. The changes show up on the Petstore site (when the browser is refreshed). +</p> +<p> Note: If the petstoreWeb sample is deployed to Tomcat with a context.path different from "petstoreWeb", or if it is deployed to a different server than localhost:8080, then BEEHIVE_HOME/samples/PetstoreDashboard/build.xml needs to be modified accordingly. The client generator relies on these default values.</p> +</div> +</div> + + +<div class="attribution"></div> +</div> +</td><td width="10"><img width="10" height="1" alt="" src="../skin/images/spacer.gif" class="spacer"></td> +</tr> +<!--================= end Content==================--> +</table> +</td> +</tr> +</table> +<!--================= end Menu, NavBar, Content ==================--> +<!--================= start Footer ==================--> +<table summary="footer" cellspacing="0" cellpadding="0" width="100%" border="0"> +<tr> +<td colspan="2" height="1" bgcolor="#4C6C8F"><img height="1" width="1" alt="" src="../skin/images/spacer.gif" class="spacer"><a href="../skin/images/label.gif"></a><a href="../skin/images/page.gif"></a><a href="../skin/images/chapter.gif"></a><a href="../skin/images/chapter_open.gif"></a><a href="../skin/images/current.gif"></a><a href="/favicon.ico"></a></td> +</tr> +<tr> +<td colspan="2" bgcolor="#CFDCED" class="copyright" align="center"><font size="2" face="Arial, Helvetica, Sans-Serif">Copyright © + 2004 The Apache Software Foundation. All rights reserved.<script type="text/javascript" language="JavaScript"><!-- + document.write(" - "+"Last Published: " + document.lastModified); + // --></script></font></td> +</tr> +<tr> +<td colspan="2" align="left" bgcolor="#CFDCED" class="logos"></td> +</tr> +</table> +<!--================= end Footer ==================--> +</body> +</html>
