diff options
author | coreyg <coreyg@13f79535-47bb-0310-9956-ffa450edef68> | 2014-11-21 09:30:19 +0000 |
---|---|---|
committer | coreyg <coreyg@13f79535-47bb-0310-9956-ffa450edef68> | 2014-11-21 09:30:19 +0000 |
commit | 200a40b332420f94992eb39a6d0ea1cf1490ffc4 (patch) | |
tree | 1c76ef1d254c7bfc91128a313d319bd60da9d01e /site/trunk/site-publish/documentation-2x/samples-beta1.html | |
parent | 85f53ab6ab4f664d63774c94b672a875c9e52b8a (diff) |
Adding tuscany's website to their svn repo for svnpubsub
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1640879 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'site/trunk/site-publish/documentation-2x/samples-beta1.html')
-rw-r--r-- | site/trunk/site-publish/documentation-2x/samples-beta1.html | 1146 |
1 files changed, 1146 insertions, 0 deletions
diff --git a/site/trunk/site-publish/documentation-2x/samples-beta1.html b/site/trunk/site-publish/documentation-2x/samples-beta1.html new file mode 100644 index 0000000000..be3eb13d4f --- /dev/null +++ b/site/trunk/site-publish/documentation-2x/samples-beta1.html @@ -0,0 +1,1146 @@ + + + + + + +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<HTML> + <HEAD> + <META name="description" content="Apache Tuscany"> + <META name="keywords" content="apache, apache tuscany, tuscany, service, services, fabric, soa, service oriented architecture, sca, service component architecture, das, sdo, csa, ruby, opensource"> + + <LINK type="text/css" rel="stylesheet" href="http://tuscany.apache.org/stylesheets/default.css"> + <LINK rel="SHORTCUT ICON" href="https://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/$images/favicon.ico"> + <TITLE>Samples-Beta1 : Apache Tuscany</TITLE> + <META http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD> + + <STYLE> + .spacetree * ul { + padding-left:0px; + margin-left: 0px; + } + .spacetree * li { + margin-left: 5px; + padding-left:5px; + } + </STYLE> + + <BODY onload="init()"> + <!-- topNav --> + <TABLE border="0" cellpadding="2" cellspacing="0" width="100%"> + <TR class="topBar"> + <TD align="left" valign="middle" class="topBarDiv" align="left" nowrap=""> + <A href="https://cwiki.apache.org/geronimo"> Home</A> > <A href="index.html" title="Apache Tuscany Docs 2.x">Apache Tuscany Docs 2.x</A> > <A href="index.html" title="Index">Index</A> > <A href="getting-started.html" title="Getting Started">Getting Started</A> > <A href="" title="Samples-Beta1">Samples-Beta1</A> + </TD> + <TD align="right" valign="middle" nowrap=""> + <FORM name="search" action="http://www.google.com/search" method="get"> + <INPUT type="hidden" name="ie" value="UTF-8"> + <INPUT type="hidden" name="oe" value="UTF-8"> + <INPUT type="hidden" name="domains" value=""> + <INPUT type="hidden" name="sitesearch" value=""> + <INPUT type="text" name="q" maxlength="255" value=""> + <INPUT type="submit" name="btnG" value="Google Search"> + </FORM> + </TD> + </TR> + </TABLE> + + + <TABLE border="0" cellpadding="2" cellspacing="0" width="100%"> + <TR class="topBar"> + <TD align="left" valign="middle" class="topBarDiv" nowrap="true" width="100%"> + <A href="index.html" title="Apache Tuscany Docs 2.x">Apache Tuscany Docs 2.x</A> > <A href="index.html" title="Index">Index</A> > <A href="getting-started.html" title="Getting Started">Getting Started</A> > <A href="" title="Samples-Beta1">Samples-Beta1</A> + </TD> + + <TD align="right" valign="middle" class="topBarDiv" align="left" nowrap="true"> + <A href="http://tuscany.apache.org/">Tuscany Home</A> | <A href="http://mail-archives.apache.org/mod_mbox/tuscany-user">User List</A> | <A href="http://mail-archives.apache.org/mod_mbox/tuscany-dev">Dev List</A> | <A href="http://issues.apache.org/jira/browse/Tuscany">Issue Tracker</A> + </TD> + </TR> + </TABLE> + + <TABLE border="0" cellpadding="0" width="100%" bgcolor="#FFFFFF"> + <TR> + <TD valign="top" align="left" width="22%" bgcolor="#F9F9F9" class="noprint"> + <DIV class="tabletitle">Table of Contents</DIV> + <DIV class="spacetree"> + </DIV> + </TD> + <TD align="left" valign="top" width="78%"> + <!-- pageContent --> + <DIV id="PageContent"> + <DIV class="pageheader" style="padding: 6px 0px 0px 0px;"> + <!-- We'll enable this once we figure out how to access (and save) the logo resource --> + <!--img src="http://geronimo.apache.org/images/confluence_logo.gif" style="float: left; margin: 4px 4px 4px 10px;" border="0"--> + <DIV style="margin: 0px 10px 0px 10px" class="smalltext">Apache Tuscany Docs 2.x</DIV> + <DIV style="margin: 0px 10px 8px 10px" class="pagetitle">Samples-Beta1</DIV> + + <DIV class="greynavbar" align="right" style="padding: 2px 10px; margin: 0px;"> +<!-- --> + <A href="https://cwiki.apache.org/confluence/pages/editpage.action?pageId=23337713"> + <IMG src="http://geronimo.apache.org/images/icons/notep_16.gif" height="16" width="16" border="0" align="absmiddle" title="Edit Page"></A> + <A href="https://cwiki.apache.org/confluence/pages/editpage.action?pageId=23337713">Edit Page</A> + + <A href="https://cwiki.apache.org/confluence/pages/listpages.action?key=TUSCANYxDOCx2x"> + <IMG src="http://geronimo.apache.org/images/icons/browse_space.gif" height="16" width="16" border="0" align="absmiddle" title="Browse Space"></A> + <A href="https://cwiki.apache.org/confluence/pages/listpages.action?key=TUSCANYxDOCx2x">Browse Space</A> + + <A href="https://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=TUSCANYxDOCx2x&fromPageId=23337713"> + <IMG src="http://geronimo.apache.org/images/icons/add_page_16.gif" height="16" width="16" border="0" align="absmiddle" title="Add Page"></A> + <A href="https://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=TUSCANYxDOCx2x&fromPageId=23337713">Add Page</A> + + <A href="https://cwiki.apache.org/confluence/pages/createblogpost.action?spaceKey=TUSCANYxDOCx2x&fromPageId=23337713"> + <IMG src="http://geronimo.apache.org/images/icons/add_blogentry_16.gif" height="16" width="16" border="0" align="absmiddle" title="Add News"></A> + <A href="https://cwiki.apache.org/confluence/pages/createblogpost.action?spaceKey=TUSCANYxDOCx2x&fromPageId=23337713">Add News</A> +<!-- --> + </DIV> + </DIV> + + <DIV class="pagecontent"> + <DIV class="wiki-content"> + <H1><A name="Samples-Beta1-"></A><FONT color="#003366"><B>Tuscany Samples</B></FONT></H1> + +<P><FONT color="#000000">The Tuscany Samples are shipped with Tuscany binary and source releases. If you are using tuscany from a release distribution then make sure you are looking at the documentation that corresponds to the samples as they stood at the time of the release.</FONT></P> + +<P><A href="20-beta-samples-documentation.html" title="2.0-beta-Samples documentation">2.0-beta samples documentation</A></P> + +<P>If however you are working with a snapshot distribution, or using samples code from the trunk of our source repository, then you've come to the right place, as the documentation here reflects the current status of the samples in the trunk of our source tree.</P> + +<P><FONT color="#000000">In a distribution, the samples source code is found in either a binary or source code distribution in the samples directory, directly under the root directory. The following sections are laid out to match the structure of the samples directory and its subdirectories.</FONT><BR class="atl-forced-newline"></P> + +<DIV> +<UL> + <LI><SPAN class="TOCOutline">1</SPAN> <A href="#Samples-Beta1-gettingstarted">getting-started</A></LI> +<UL> + <LI><SPAN class="TOCOutline">1.1</SPAN> <A href="#Samples-Beta1-contributionhelloworld">contribution-helloworld</A></LI> + <LI><SPAN class="TOCOutline">1.2</SPAN> <A href="#Samples-Beta1-helloworldwebapp">helloworld-webapp</A></LI> +</UL> + <LI><SPAN class="TOCOutline">2</SPAN> <A href="#Samples-Beta1-runningtuscany">running-tuscany</A></LI> +<UL> + <LI><SPAN class="TOCOutline">2.1</SPAN> <A href="#Samples-Beta1-commandline">command-line</A></LI> + <LI><SPAN class="TOCOutline">2.2</SPAN> <A href="#Samples-Beta1-embeddedjse">embedded-jse</A></LI> + <LI><SPAN class="TOCOutline">2.3</SPAN> <A href="#Samples-Beta1-embeddedosgi">embedded-osgi</A></LI> + <LI><SPAN class="TOCOutline">2.4</SPAN> <A href="#Samples-Beta1-maven">maven</A></LI> + <LI><SPAN class="TOCOutline">2.5</SPAN> <A href="#Samples-Beta1-osgi">osgi</A></LI> + <LI><SPAN class="TOCOutline">2.6</SPAN> <A href="#Samples-Beta1-shell">shell</A></LI> + <LI><SPAN class="TOCOutline">2.7</SPAN> <A href="#Samples-Beta1-webapp">webapp</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3</SPAN> <A href="#Samples-Beta1-learningmore">learning-more</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.1</SPAN> <A href="#Samples-Beta1-async">async</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.1.1</SPAN> <A href="#Samples-Beta1-"> <SPAN style="color: #003366"><B>sample-contribution-implementation-java-calculator-async</B></SPAN></A></LI> + <LI><SPAN class="TOCOutline">3.1.2</SPAN> <A href="#Samples-Beta1-embeddedjseasyncsamplelauncher">embedded-jse-async-sample-launcher</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.2</SPAN> <A href="#Samples-Beta1-bindingcomet">binding-comet</A></LI> + <LI><SPAN class="TOCOutline">3.3</SPAN> <A href="#Samples-Beta1-bindingjsonrpc">binding-jsonrpc</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.3.1</SPAN> <A href="#Samples-Beta1-contributioncalculator">contribution-calculator</A></LI> + <LI><SPAN class="TOCOutline">3.3.2</SPAN> <A href="#Samples-Beta1-contributioncalculatorwebapp">contribution-calculator-webapp</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.4</SPAN> <A href="#Samples-Beta1-bindingrmi">binding-rmi</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.4.1</SPAN> <A href="#Samples-Beta1-contributioncalculatorreference%2528forbindingrmi%2529">contribution-calculator-reference (for binding-rmi)</A></LI> + <LI><SPAN class="TOCOutline">3.4.2</SPAN> <A href="#Samples-Beta1-contributioncalculatorservice%2528forbindingrmi%2529">contribution-calculator-service (for binding-rmi)</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.5</SPAN> <A href="#Samples-Beta1-bindingsca">binding-sca</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.5.1</SPAN> <A href="#Samples-Beta1-contributioncalculator%2528forbindingSCA%2529">contribution-calculator (for binding SCA)</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.6</SPAN> <A href="#Samples-Beta1-bindingws">binding-ws</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.6.1</SPAN> <A href="#Samples-Beta1-contributioncalculator%2528forbindingws%2529">contribution-calculator (for binding-ws)</A></LI> + <LI><SPAN class="TOCOutline">3.6.2</SPAN> <A href="#Samples-Beta1-contributionhelloworldwssdo%2528forbindingws%2529">contribution-helloworld-ws-sdo (for binding-ws)</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.7</SPAN> <A href="#Samples-Beta1-distributedosgi">distributed-osgi</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.7.1</SPAN> <A href="#Samples-Beta1-dosgidynamiccalculator">dosgi-dynamic-calculator</A></LI> + <LI><SPAN class="TOCOutline">3.7.2</SPAN> <A href="#Samples-Beta1-dosgidynamiccalculatoroperations">dosgi-dynamic-calculator-operations</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.8</SPAN> <A href="#Samples-Beta1-implementationbpel">implementation-bpel</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.8.1</SPAN> <A href="#Samples-Beta1-contributionhelloworldbpel">contribution-helloworld-bpel</A></LI> + <LI><SPAN class="TOCOutline">3.8.2</SPAN> <A href="#Samples-Beta1-helloworldbpelwebapp">helloworld-bpel-webapp</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.9</SPAN> <A href="#Samples-Beta1-implementationcomposite">implementation-composite</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.9.1</SPAN> <A href="#Samples-Beta1-helloworldrecursive">helloworld-recursive</A></LI> + <LI><SPAN class="TOCOutline">3.9.2</SPAN> <A href="#Samples-Beta1-helloworldrecursivews">helloworld-recursive-ws</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.10</SPAN> <A href="#Samples-Beta1-implementationextension">implementation-extension</A></LI> + <LI><SPAN class="TOCOutline">3.11</SPAN> <A href="#Samples-Beta1-implementationjava">implementation-java</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.11.1</SPAN> <A href="#Samples-Beta1-contributioncalculator">contribution-calculator</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.12</SPAN> <A href="#Samples-Beta1-implementation.osgi">implementation.osgi</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.12.1</SPAN> <A href="#Samples-Beta1-dosgicalculator">dosgi-calculator</A></LI> + <LI><SPAN class="TOCOutline">3.12.2</SPAN> <A href="#Samples-Beta1-dosgicalculatoroperations">dosgi-calculator-operations</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.13</SPAN> <A href="#Samples-Beta1-implementationscript">implementation-script</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.13.1</SPAN> <A href="#Samples-Beta1-contributioncalculator">contribution-calculator</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.14</SPAN> <A href="#Samples-Beta1-implementationspring">implementation-spring</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.14.1</SPAN> <A href="#Samples-Beta1-contributionhelloworldspring">contribution-helloworld-spring</A></LI> + <LI><SPAN class="TOCOutline">3.14.2</SPAN> <A href="#Samples-Beta1-helloworldspringwebapp">helloworld-spring-webapp</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.15</SPAN> <A href="#Samples-Beta1-implementationwebapp">implementation-webapp</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.15.1</SPAN> <A href="#Samples-Beta1-helloworldjaxrswebapp">helloworld-jaxrs-webapp</A></LI> + <LI><SPAN class="TOCOutline">3.15.2</SPAN> <A href="#Samples-Beta1-helloworldjmswebapp">helloworld-jms-webapp</A></LI> + <LI><SPAN class="TOCOutline">3.15.3</SPAN> <A href="#Samples-Beta1-helloworldjsclientwebapp">helloworld-js-client-webapp</A></LI> + <LI><SPAN class="TOCOutline">3.15.4</SPAN> <A href="#Samples-Beta1-helloworldjsfwebapp">helloworld-jsf-webapp</A></LI> + <LI><SPAN class="TOCOutline">3.15.5</SPAN> <A href="#Samples-Beta1-helloworldjspwebapp">helloworld-jsp-webapp</A></LI> + <LI><SPAN class="TOCOutline">3.15.6</SPAN> <A href="#Samples-Beta1-helloworldservletwebapp">helloworld-servlet-webapp</A></LI> + <LI><SPAN class="TOCOutline">3.15.7</SPAN> <A href="#Samples-Beta1-helloworldstripeswebapp">helloworld-stripes-webapp</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.16</SPAN> <A href="#Samples-Beta1-loggingscribe">logging-scribe</A></LI> + <LI><SPAN class="TOCOutline">3.17</SPAN> <A href="#Samples-Beta1-mavenosgijunit">maven-osgi-junit</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.17.1</SPAN> <A href="#Samples-Beta1-calculatorosgi">calculator-osgi</A></LI> + <LI><SPAN class="TOCOutline">3.17.2</SPAN> <A href="#Samples-Beta1-calculatorrestosgi">calculator-rest-osgi</A></LI> +</UL> + <LI><SPAN class="TOCOutline">3.18</SPAN> <A href="#Samples-Beta1-scaclient">sca-client</A></LI> +<UL> + <LI><SPAN class="TOCOutline">3.18.1</SPAN> <A href="#Samples-Beta1-calculatorscaclient">calculator-scaclient</A></LI> + <LI><SPAN class="TOCOutline">3.18.2</SPAN> <A href="#Samples-Beta1-helloworldscaclient">helloworld-scaclient</A></LI> +</UL> +</UL> + <LI><SPAN class="TOCOutline">4</SPAN> <A href="#Samples-Beta1-applications">applications</A></LI> +<UL> + <LI><SPAN class="TOCOutline">4.1</SPAN> <A href="#Samples-Beta1-store">store</A></LI> + <LI><SPAN class="TOCOutline">4.2</SPAN> <A href="#Samples-Beta1-storewebapp">store-webapp</A></LI> +</UL> +</UL></DIV> + +<H2><A name="Samples-Beta1-gettingstarted"></A>getting-started</H2> + +<P>SCA defines a concept called a Contribution which is the way that SCA composite applications are packed for deployment. See <A href="sca-introduction.html" title="SCA Introduction">SCA Introduction</A> for more information on SCA concepts. </P> + +<P>The getting-started samples consist of simple SCA contributions that you can build and run as your first step to getting up and running with the Tuscany SCA Java runtime. </P> + +<P>You can build the sample contributions with either Maven or Ant and the running-tuscany director contains information about the various ways you can start Tuscany and run these contributions. </P> + +<H3><A name="Samples-Beta1-helloworldcontribution"></A>helloworld-contribution</H3> + +<P>This is the simplest contribution. This contribution describes a composite application with a single component implemented in Java. The component's Java implementation provides service "business logic" for saying hello to a person whose name is supplied as input to the service. </P> + +<H3><A name="Samples-Beta1-helloworldwebapp"></A>helloworld-webapp</H3> + +<P>This sample is not a contribution in it's own right but demonstrates how to run the helloworld-contribution inside a web application. </P> + +<H3><A name="Samples-Beta1-callbackapi"></A>callback-api</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">This feels like a learning-more sample. I wouldn't focus on callbacks with the first time user</FONT></TD></TR></TABLE></DIV> + +<H3><A name="Samples-Beta1-scascopes"></A>sca-scopes</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">This feels like a learning-more sample. I wouldn't focus on scopes with the first time user</FONT></TD></TR></TABLE></DIV> + +<H3><A name="Samples-Beta1-scaincludecontribution"></A>sca-include-contribution</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">This feels like a learning-more sample. I wouldn't focus on scopes with the first time user</FONT></TD></TR></TABLE></DIV> + +<H2><A name="Samples-Beta1-runningtuscany"></A>running-tuscany</H2> + +<P>Running something in Tuscany requires one or more contributions, and a method of launching the contributions to make them available as services. The sections below describes various means of launching contributions into an executing tuscany runtime.</P> + + +<H3><A name="Samples-Beta1-commandline"></A>command-line</H3> + +<P>To execute a sample contribution from the command line on Windows, from a command prompt in the samples directory, run the command ...</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +..\bin\tuscany.bat <SPAN class="code-quote">"contribution-name"</SPAN> +</PRE> +</DIV></DIV> + +<P>for example</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +..\bin\tuscany.bat contribution-binding-sca-calculator +</PRE> +</DIV></DIV> + +<P>or on *nix platforms, from a shell prompt in the samples directory, run the command ...</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +../bin/tuscany.sh contribution-binding-sca-calculator +</PRE> +</DIV></DIV> + +<H3><A name="Samples-Beta1-embeddedjse"></A>embedded-jse</H3> + +<P>This directory contains sample java launchers for the<BR> +tuscany sample contributions. To use the sample JSE launchers with ant execute the command</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +ant run-<contributionname> +</PRE> +</DIV></DIV> + +<P>where run-<contributionname> is one of the targets in the build.xml file</P> + +<P>To use this sample launcher to run all of the contributions as junit test cases, execute the command "mvn" in the launcher directory.</P> + + +<H3><A name="Samples-Beta1-embeddedosgi"></A>embedded-osgi</H3> + +<P>The launchers implemented in the src/main/java/launchers directory each launch a specific contribution into the OSGI runtime.<BR> +To use this sample OSGI launcher with ant excute the command</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +ant run-<contributionname> +</PRE> +</DIV></DIV> +<P>where run-<contributionname> is one of the targets in the build.xml file</P> + +<P>To use this sample launcher to run all of the contributions as junit test cases,<BR> +execute the command </P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java">mvn</PRE> +</DIV></DIV> +<P> in the launcher directory.</P> + + +<H3><A name="Samples-Beta1-maven"></A>maven</H3> + +<P>To execute a sample contribution from Maven</P> + +<P>look for contributions that have the following configuration in their pom.xml file:</P> + +<P><plugin><BR> +<groupId>org.apache.tuscany.maven.plugins</groupId><BR> +<artifactId>maven-tuscany-plugin</artifactId><BR> +<version>2.0-SNAPSHOT</version><BR> +</plugin></P> + +<P>For contributions that have this, for example, learning-more/binding-sca/contribution-calculator, do the following</P> + +<P>cd samples/learning-more/binding-sca/contribution-calculator<BR> +mvn tuscany:run</P> + +<P>This will launch the contribution in the Tuscany runtime and then wait. At this point you can use<BR> +other clients to send messages to services that the running SCA applcation exposes,<BR> +for example, try learning-more/calculator-scaclient.</P> + +<H3><A name="Samples-Beta1-osgi"></A>osgi</H3> + +<P>The Tuscany runtime can be run in and OSGi container. </P> + + +<P><B>Running in Equinox</B></P> + +<P>On Windows, run</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +java \-jar ..\..\modules\osgi-3.5.0-v20090520.jar \-configuration ..\..\features\configuration \-clean \-console + +</PRE> +</DIV></DIV> + +<P>On *Unix, run</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +java \-jar ../../modules/osgi-3.5.0-v20090520.jar \-configuration ../../features/configuration \-clean \-console + +</PRE> +</DIV></DIV> + +<P>You should see the osgi console:</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +osgi> + +osgi> Jun 22, 2009 1:32:27 PM org.apache.tuscany.sca.extensibility.equinox.EquinoxServiceDiscoveryActivator start + +INFO: Equinox-based service discoverer is now configured. + +</PRE> +</DIV></DIV> + +<P>You can run "ss" command under the osgi> to see the status of the bundles.</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +osgi> ss + +</PRE> +</DIV></DIV> + +<P>Then you can install and start contributions as bundles by doing the following:</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +osgi> install file:./path/to/contribution_bundle.jar + +</PRE> +</DIV></DIV> + +<P>Note that contribution_bundle.jar will need an activator in order to register the bundle as a SCA contribution</P> + +<DIV class="panelMacro"><TABLE class="warningMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/forbidden.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD>see samples/????<BR> +TODO is this still true</TD></TR></TABLE></DIV> +<P>Running on Felix</P> + +<P>See <A href="http://tuscany.apache.org/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html" class="external-link" rel="nofollow">http://tuscany.apache.org/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html</A></P> + + +<H3><A name="Samples-Beta1-shell"></A>shell</H3> + +<P>This directory contains a sample shell program supporting simple commands to<BR> +start and stop SCA composites.</P> + +<P>To build the sample shell do this:</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +mvn install +</PRE> +</DIV></DIV> +<P>To run it:</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +./sca +</PRE> +</DIV></DIV> + +<P>at the prompt:</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +start myNode ../../applications/store/target/sample-store.jar +</PRE> +</DIV></DIV> +<P>or:</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +start myNode http:<SPAN class="code-comment">//people.apache.org/~jsdelfino/tuscany/java/test/sample-store.jar</SPAN> +</PRE> +</DIV></DIV> +<P>also try:</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +status +stop myNode +bye +</PRE> +</DIV></DIV> +<P>Starting and stopping composites is pretty fast. To see that, try the following<BR> +two scripts, which start/stop the sample store composite 10 times.</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +./sca <scripts/test.txt +</PRE> +</DIV></DIV> +<P>or</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +./sca <scripts/test-remote.txt +</PRE> +</DIV></DIV> + +<P>The shell can also run as a Webapp. To try it install target/scashell.war in<BR> +a Web container, point your Web browser to <A href="http://localhost:8080/scashell" class="external-link" rel="nofollow">http://localhost:8080/scashell</A><BR> +and try the links on that page.</P> + + +<H3><A name="Samples-Beta1-webapp"></A>webapp</H3> + +<P>To execute sample webapp based contributions (contributions that have webapp at the end of their name) you<BR> +can build the contribution using maven and then copy the resulting war file to your container of choice</P> + +<P>For example, for binding-jsonrpc/contribution-calculator-webapp, do the following</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd samples/binding-jsonrpc/contribution-calculator-webapp +mvn +cp target/sample-contribution-binding-jsonrpc-calculator-webapp.war your_container_deployment-dir +</PRE> +</DIV></DIV> + +<P>As an alternative sample webapp based contributions can be run within Jetty directly from Maven, look for<BR> +webapp contributions that have the following configuration in their pom.xml file:</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +<plugin> + <groupId>org.mortbay.jetty</groupId> + <artifactId>maven-jetty-plugin</artifactId> + <version>6.1.18</version> +</plugin> +</PRE> +</DIV></DIV> + +<P>For contributions that have this, for example, binding-jsonrpc/contribution-calculator-webapp, do the following</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd samples/binding-sca/contribution-calculator +mvn jetty:run +</PRE> +</DIV></DIV> + +<P>This will launch the contribution in the Jetty runtime and then wait. At this point you can use<BR> +HTTP clients to send messages to services that the running SCA applcation exposes. For this<BR> +example try pointing your browser at:</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +http:<SPAN class="code-comment">//localhost:8080/sample-contribution-binding-jsonrpc-calculator-webapp/</SPAN> +</PRE> +</DIV></DIV> + +<H2><A name="Samples-Beta1-learningmore"></A>learning-more</H2> + +<P>The samples found in the contributions below illustrate how to see more of SCA and Tuscany's features in action. You'll need to employ the information above in the "running tuscany" section to select an appropriate way of runing the contributions in the samples listed below.</P> + +<H3><A name="Samples-Beta1-async"></A>async</H3> + +<P>This sample demonstrates invocation of services offered in both synchronous and asynchronous forms. Asynchroncity is possible by either callback to or polling by the original service invoker.</P> + +<H4><A name="Samples-Beta1-"></A><FONT color="#003366"><B>sample-contribution-implementation-java-calculator-async</B></FONT></H4> + +<P>In the composite file src/main/resources/Calculator.composite the references "calculatorServiceRefSync" and "calculatorServiceRefAsync" make use of the alternative implementations of the Calculator service described in the CalculatorSync and CalculatorAsync components and implemented in the calculator.CalculatorServiceSyncImpl and calculator.CalculatorServiceAsyncImpljava classes. </P> + + +<H4><A name="Samples-Beta1-embeddedjseasyncsamplelauncher"></A>embedded-jse-async-sample-launcher</H4> + + +<P>Note that the launcher simply starts and stops a node running the contribution. Within the contribution the CalculatorClient java class, marked with the @EagerInit annotation, runs its calculate method (marked with the @Init annotation), thereby triggering the calculation service to be performed. The calculator service is actually performed by the injected instance of CalculatorServiceProxyImpl, which uses both of its references (one for the sync service, one for the async) to perform calculations. The calculations are then performed by instances of CalculatorServiceSyncImpl and CalculatorServiceAsyncImpl. Note that the Tuscany runtime views the following two interfaces as compatible.</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +@Remotable +<SPAN class="code-keyword">public</SPAN> <SPAN class="code-keyword">interface</SPAN> CalculatorService { + <SPAN class="code-object">String</SPAN> calculate(<SPAN class="code-object">Integer</SPAN> n1); +} + +@Remotable +@AsyncInvocation + +<SPAN class="code-keyword">public</SPAN> <SPAN class="code-keyword">interface</SPAN> CalculatorServiceAsync { + + void calculateAsync(<SPAN class="code-object">Integer</SPAN> n1, ResponseDispatch<<SPAN class="code-object">String</SPAN>> response); + +} + +</PRE> +</DIV></DIV> + +<H3><A name="Samples-Beta1-bindingcomet"></A>binding-comet</H3> + +<P>Executing the command "mvn" in this sample project creates a web archive suitable for deployment to Tomcat. It makes use of the tuscany coment binding. Comet support allows a servlet to process IO asynchronously, receiving events when data is available for reading on the connection (rather than always using a blocking read), and writing data back on connections asynchronously (most likely responding to some event raised from some other source).</P> + +<DIV class="panelMacro"><TABLE class="warningMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/forbidden.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Needs expert review/update</FONT></TD></TR></TABLE></DIV> + +<H3><A name="Samples-Beta1-bindingjsonrpc"></A>binding-jsonrpc</H3> + + +<P>This sample demonstrates using a simple calculator service component which makes use of four services for the basic arithmetic functions. In this variant of the calculator sample you can see by looking in the src/main/resources/Calculator.composite xml file that the AddService is configured to be invoked using the json rpc protocol.</P> + +<H4><A name="Samples-Beta1-contributioncalculator"></A>contribution-calculator</H4> + + +<P>This variant of the calculator contribution configures the AddService to be accessed via the JSON RPC protocol (see the XML in the Calculator.composite file).</P> +<DIV class="panelMacro"><TABLE class="warningMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/forbidden.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR>Needs review/completion</TD></TR></TABLE></DIV> + +<H4><A name="Samples-Beta1-contributioncalculatorwebapp"></A>contribution-calculator-webapp</H4> + + +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H3><A name="Samples-Beta1-bindingrmi"></A>binding-rmi</H3> + +<P>In this example the calculator function is split over two contributions in order to demonstrate the remote method invocation binding. The CalculatorService in the CalculatorServiceComponent defined in the CalculatorRMIServer.composite file is configured to be accessible using RMI.</P> + +<DIV class="panelMacro"><TABLE class="warningMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/forbidden.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR>Needs review/completion</TD></TR></TABLE></DIV> + +<H4><A name="Samples-Beta1-contributioncalculatorreference%28forbindingrmi%29"></A>contribution-calculator-reference (for binding-rmi)</H4> + + +<P>This contribution serves the purpose of accessing the services of the calculator service contribution, in particular defining a reference that uses the add service of that contribution using the RMI protocol.</P> + +<H4><A name="Samples-Beta1-contributioncalculatorservice%28forbindingrmi%29"></A>contribution-calculator-service (for binding-rmi)</H4> + + +<P>This contribution defines the calcullators add service to be available via RMI invocation.</P> + +<H3><A name="Samples-Beta1-bindingsca"></A>binding-sca</H3> + + +<P>This sample is the simplest sample other than that shown in the getting starting section. It uses the default SCA protocol for communicating between the components. </P> + +<H4><A name="Samples-Beta1-contributioncalculator%28forbindingSCA%29"></A>contribution-calculator (for binding SCA)</H4> + +<P><FONT color="#000000">The service and reference definitions in the Calculator.composite and CalculatorClient.composite files have no binding attributes, thereby defaulting to the SCA binding for communication between the running instances of the components.</FONT></P> + +<H3><A name="Samples-Beta1-bindingws"></A>binding-ws</H3> + + +<P>This sample contains contrributions which show how the services can be offered via a web service interfaqce.</P> + +<H4><A name="Samples-Beta1-contributioncalculator%28forbindingws%29"></A>contribution-calculator (for binding-ws)</H4> + +<P>This contribution provides the four arithmetic operations in the calculator service, with the AddService being accessible as a web service via the URL <A href="http://localhost:8085/AddServiceComponent" class="external-link" rel="nofollow">http://localhost:8085/AddServiceComponent</A>, as configured in the Calculator.composite file in the contribution project.</P> + +<H4><A name="Samples-Beta1-contributionhelloworldwssdo%28forbindingws%29"></A>contribution-helloworld-ws-sdo (for binding-ws)</H4> + +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document - rework the content of the README as given below</FONT></TD></TR></TABLE></DIV> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> + +Hello World Web Service References using SDO Sample +=================================================== +This sample demonstrates an SCA reference that uses a web service binding which works with SDO. + +The README in the samples directory (the directory above <SPAN class="code-keyword">this</SPAN>) provides +general instructions about building and running samples. Take a look there +first. + +To run <SPAN class="code-keyword">this</SPAN> sample +------------------ +This sample is dependent on helloworld-ws-service. Open a command prompt to start +the service. If you are running ant <SPAN class="code-keyword">do</SPAN> the following: + +cd helloworld-ws-service +ant run + +<SPAN class="code-keyword">if</SPAN> you don't have ant, issue one of the following commands <SPAN class="code-keyword">for</SPAN> windows or *nix: + +java -cp ..\..\lib\tuscany-sca-manifest.jar;target\sample-helloworld-ws-service.jar helloworld.HelloWorldServer + +and on *nix <SPAN class="code-keyword">do</SPAN> + +java -cp ../../lib/tuscany-sca-manifest.jar:target/sample-helloworld-ws-service.jar helloworld.HelloWorldServer + +You should see the following output: + +Buildfile: build.xml + +run-server: + [java] log4j:WARN No appenders could be found <SPAN class="code-keyword">for</SPAN> logger (org.apache.axiom. +om.util.StAXUtils). + [java] log4j:WARN Please initialize the log4j system properly. + [java] Aug 24, 2007 11:17:33 AM org.apache.catalina.core.StandardEngine sta +rt + [java] INFO: Starting Servlet Engine: Apache Tomcat/6.0.10 + [java] Aug 24, 2007 11:17:34 AM org.apache.catalina.startup.ContextConfig d +efaultWebConfig + [java] INFO: No <SPAN class="code-keyword">default</SPAN> web.xml + [java] Aug 24, 2007 11:17:34 AM org.apache.catalina.startup.DigesterFactory + register + [java] WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/jsp_2_0. +xsd + [java] Aug 24, 2007 11:17:34 AM org.apache.catalina.startup.DigesterFactory + register + [java] WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/web-jspt +aglibrary_1_1.dtd + [java] Aug 24, 2007 11:17:34 AM org.apache.catalina.startup.DigesterFactory + register + [java] WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/web-jspt +aglibrary_1_2.dtd + [java] Aug 24, 2007 11:17:34 AM org.apache.catalina.startup.DigesterFactory + register + [java] WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/web-jspt +aglibrary_2_0.xsd + [java] Aug 24, 2007 11:17:34 AM org.apache.catalina.startup.DigesterFactory + register + [java] WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/resources/j2ee_web_ser +vices_1_1.xsd + [java] Aug 24, 2007 11:17:34 AM org.apache.coyote.http11.Http11Protocol ini +t + [java] INFO: Initializing Coyote HTTP/1.1 on http-8085 + [java] Aug 24, 2007 11:17:34 AM org.apache.coyote.http11.Http11Protocol sta +rt + [java] INFO: Starting Coyote HTTP/1.1 on http-8085 + [java] Aug 24, 2007 11:17:34 AM org.apache.tuscany.sca.http.tomcat.TomcatSe +rver addServletMapping + [java] INFO: Added Servlet mapping: http:<SPAN class="code-comment">//localhost:8085/HelloWorldService +</SPAN> + [java] HelloWorld server started (press enter to shutdown) + +The server is now ready. + + +Now, open another command window to run the client. + +cd helloworld-ws-sdo +ant run + +OR <SPAN class="code-keyword">if</SPAN> you don't have ant, on Windows <SPAN class="code-keyword">do</SPAN> + +java -cp ..\..\lib\tuscany-sca-manifest.jar;target\sample-helloworld-ws-sdo.jar helloworld.HelloWorldClient + +and on *nix <SPAN class="code-keyword">do</SPAN> + +java -cp ../../lib/tuscany-sca-manifest.jar:target/sample-helloworld-ws-sdo.jar helloworl.HelloWorldClient + +You should be able to see the following result: + +Buildfile: build.xml + +run: + [java] log4j:WARN No appenders could be found <SPAN class="code-keyword">for</SPAN> logger (org.apache.axiom. +om.util.StAXUtils). + [java] log4j:WARN Please initialize the log4j system properly. + [java] Injected helloWorldService + [java] Called getGreetings + [java] Hello David Haney + +BUILD SUCCESSFUL +Total time: 9 seconds + + +Sample Overview +--------------- +The sample provides a single component that is wired to a reference with a +web service binding. The binding refers to WSDL that identifies the service +exposed by the helloworld-ws-service sample. + +helloworld-ws-sdo/ + src/ + main/ + java/ + helloworld/ + HelloWorldService.java - <SPAN class="code-keyword">interface</SPAN> description <SPAN class="code-keyword">for</SPAN> + HelloWorldServiceComponent + HelloWorldServiceComponent.java - component implementation + HelloWorldClient.java - starts the SCA <SPAN class="code-object">Runtime</SPAN> and + deploys the helloworldwsclient + .composite. It then calls the + HelloWorldServiceComponent + resources/ + wsdl + helloworld.wsdl - the service description that the + SCA reference uses to bind to service. + + test/ + java/ + helloworld/ + HelloWorldClientTestCase.java - JUnit test <SPAN class="code-keyword">case</SPAN> + helloworld-ws-sdo.png - a pictorial representation of the + sample .composite file + build.xml - the Ant build file + pom.xml - the Maven build file + +Building And Running The Sample Using Ant +----------------------------------------- +You can build and run the sample with the binary distribution using Ant. +Make sure that you have started helloworld-ws-service which <SPAN class="code-keyword">this</SPAN> sample is dependent on +in a separate command window. You can either follow the instruction at the begining of <SPAN class="code-keyword">this</SPAN> +sample file or <SPAN class="code-keyword">if</SPAN> you want to build and run the service, follow the README under helloworld-ws-service. + +Now, let's build and run helloworld-ws-sdo sample: + +cd helloworld-ws-sdo +ant +ant run + +You should see the following output from the run target. + +run: + [java] log4j:WARN No appenders could be found <SPAN class="code-keyword">for</SPAN> logger (org.apache.axiom. +om.util.StAXUtils). + [java] log4j:WARN Please initialize the log4j system properly. + [java] Injected helloWorldService + [java] Called getGreetings + [java] Hello World + +Building And Running The Sample Using Maven +------------------------------------------- +You can build and run the sample with either the binary or source distributions using Maven. Please note that you <SPAN class="code-keyword">do</SPAN> not need to start helloworld-ws-service in <SPAN class="code-keyword">this</SPAN> <SPAN class="code-keyword">case</SPAN> since Maven does <SPAN class="code-keyword">this</SPAN> <SPAN class="code-keyword">for</SPAN> you. + +cd helloworld-ws-sdo +mvn + +You should see the following output from the test phase. + +------------------------------------------------------- + T E S T S +------------------------------------------------------- +Running helloworld.HelloWorldClientTestCase +log4j:WARN No appenders could be found <SPAN class="code-keyword">for</SPAN> logger (org.apache.axiom.om.util.StAX +Utils). +log4j:WARN Please initialize the log4j system properly. +log4j:WARN No appenders could be found <SPAN class="code-keyword">for</SPAN> logger (org.apache.axiom.om.util.StAX +Utils). +log4j:WARN Please initialize the log4j system properly. +Aug 23, 2007 2:27:32 PM org.apache.catalina.core.StandardEngine start +INFO: Starting Servlet Engine: Apache Tomcat/6.0.10 +Aug 23, 2007 2:27:32 PM org.apache.catalina.startup.ContextConfig defaultWebConf +ig +INFO: No <SPAN class="code-keyword">default</SPAN> web.xml +Aug 23, 2007 2:27:32 PM org.apache.catalina.startup.DigesterFactory register +WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/jsp_2_0.xsd +Aug 23, 2007 2:27:32 PM org.apache.catalina.startup.DigesterFactory register +WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/web-jsptaglibrary_1_ +1.dtd +Aug 23, 2007 2:27:32 PM org.apache.catalina.startup.DigesterFactory register +WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/web-jsptaglibrary_1_ +2.dtd +Aug 23, 2007 2:27:32 PM org.apache.catalina.startup.DigesterFactory register +WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/jsp/resources/web-jsptaglibrary_2_ +0.xsd +Aug 23, 2007 2:27:32 PM org.apache.catalina.startup.DigesterFactory register +WARNING: Could not get url <SPAN class="code-keyword">for</SPAN> /javax/servlet/resources/j2ee_web_services_1_1.xs +d +Aug 23, 2007 2:27:32 PM org.apache.coyote.http11.Http11Protocol init +INFO: Initializing Coyote HTTP/1.1 on http-8085 +Aug 23, 2007 2:27:32 PM org.apache.coyote.http11.Http11Protocol start +INFO: Starting Coyote HTTP/1.1 on http-8085 +Aug 23, 2007 2:27:32 PM org.apache.tuscany.sca.http.tomcat.TomcatServer addServl +etMapping +INFO: Added Servlet mapping: http:<SPAN class="code-comment">//localhost:8085/HelloWorldService +</SPAN>Injected helloWorldService +Called getGreetings +Aug 23, 2007 2:27:34 PM org.apache.coyote.http11.Http11Protocol destroy +INFO: Stopping Coyote HTTP/1.1 on http-8085 +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.502 sec + +Results : + +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 + + +This shows that the Junit test cases have run successfully. + +</PRE> +</DIV></DIV> + + +<H3><A name="Samples-Beta1-distributedosgi"></A>distributed-osgi</H3> + +<P>These samples demonstrate the execution of Tuscany contributions in a distributed OSGI environment.</P> + +<H4><A name="Samples-Beta1-dosgidynamiccalculator"></A>dosgi-dynamic-calculator</H4> + + +<H4><A name="Samples-Beta1-dosgidynamiccalculatoroperations"></A>dosgi-dynamic-calculator-operations</H4> + + +<H3><A name="Samples-Beta1-implementationbpel"></A>implementation-bpel</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR></TD></TR></TABLE></DIV> + +<H4><A name="Samples-Beta1-contributionhelloworldbpel"></A>contribution-helloworld-bpel</H4> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR>check instructions work and fix up</TD></TR></TABLE></DIV> +<P>This sample demonstrates an SCA service implemented by a BPEL process.</P> + +<P>If you just want to run it to see what happens open a command prompt, navigate<BR> +to this sample directory, and do</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +ant compile run +</PRE> +</DIV></DIV> +<P>OR if you don't have ant, on Windows do</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +mkdir target\classes +mkdir target\wsdl2java-source +java \-cp ..\..\lib\tuscany-sca-manifest.jar org.apache.tuscany.sdo.generate.XSD2JavaGenerator \-targetDirectory target/wsdl2java-source \-prefix HelloWorld \-noContainment \-noUnsettable src/main/resources/helloworld.wsdl +java \-cp ..\..\lib\tuscany-sca-manifest.jar org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator \-targetDirectory target/wsdl2java-source src/main/resources/helloworld.wsdl +unzip ..\..\lib\ode-dao-jpa-ojpa-derby-1.1.zip \-d target\database +javac \-d target\classes \-cp target\classes;..\..\lib\tuscany-sca-manifest.jar \-sourcepath src\main\java;target\wsdl2java-source \-target 1.5 \-g \-source 1.5 src\main\java\helloworld\BPELClient.java +copy src\main\resources\* target\classes +java \-cp ..\..\lib\tuscany-sca-manifest.jar;target\classes;target\database helloworld.BPELClient +</PRE> +</DIV></DIV> +<P>and on *nix do</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +mkdir target/classes +mkdir target/wsdl2java-source +java \-cp ../../lib/tuscany-sca-manifest.jar org.apache.tuscany.sdo.generate.XSD2JavaGenerator \-targetDirectory target/wsdl2java-source \-prefix HelloWorld \-noContainment \-noUnsettable src/main/resources/helloworld.wsdl +java \-cp ../../lib/tuscany-sca-manifest.jar org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator \-targetDirectory target/wsdl2java-source src/main/resources/helloworld.wsdl +unzip ../../lib/ode-dao-jpa-ojpa-derby-1.1.zip \-d target/database +javac \-d target/classes \-cp target/classes;../../lib/tuscany-sca-manifest.jar \-sourcepath src/main/java;target/wsdl2java-source \-target 1.5 \-g \-source 1.5 src/main/java/helloworld/BPELClient.java +cp src/main/resources/\* target/classes +java \-cp ../../lib/tuscany-sca-manifest.jar:target/classes:target/database helloworld.BPELClient +</PRE> +</DIV></DIV> +<P>The sample will start an embedded BPEL engine, deploy a process and invoke it.</P> + +<P><B>Sample Overview</B></P> + +<P>The sample provides a single component that is wired to a service with a<BR> +web service binding.</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +helloworld-bpel/ +src/ +main/ +java/ +helloworld/ +BPELClient.java - client application <SPAN class="code-keyword">for</SPAN> +BEPELHelloWorldComponent + +resources/ +deploy.xml - ODE deployment descriptor +helloworld.bpel - helloworld bpel process +helloworld.componentType - helloworld bpel service description +helloworld.composite - the SCA assembly <SPAN class="code-keyword">for</SPAN> <SPAN class="code-keyword">this</SPAN> sample +helloworld.wsdl - the service description that describes +the bpel process +log4j.properties - logging configuration + +test/ +java/ +helloworld/ +BPELHelloWorldTestCase.java - JUnit test <SPAN class="code-keyword">case</SPAN> +helloworld-bpel.png - a pictorial representation of the +sample .composite file +build.xml - the Ant build file +pom.xml - the Maven build file +</PRE> +</DIV></DIV> +<P><B>Building And Running The Sample Using Ant</B></P> + +<P>With the binary distribution the sample can be built and run using Ant as<BR> +follows</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd helloworld-bpel +ant compile +ant run +</PRE> +</DIV></DIV> +<P>You should see the following output from the run target.</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +run: +[java] Starting BPELHelloWorldComponent +[java] >>> Deploying : D:\temp\SCA1.1-RC1\tuscany-sca-1.1-incubating\samples\helloworld-bpel\target\classes +[java] ::arg:::::: <?xml version=<SPAN class="code-quote">"1.0"</SPAN> encoding=<SPAN class="code-quote">"UTF-8"</SPAN>?> +[java] <hello xmlns=<SPAN class="code-quote">"http:<SPAN class="code-comment">//tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"</SPAN>><message xmlns="http://tuscany.apache.org/implementation/bpel/exampl +</SPAN>e/helloworld.wsdl">Hello</message></hello> +[java] ::message:: <?xml version=<SPAN class="code-quote">"1.0"</SPAN> encoding=<SPAN class="code-quote">"UTF-8"</SPAN>?> +[java] <message><TestPart><hello xmlns=<SPAN class="code-quote">"http:<SPAN class="code-comment">//tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"</SPAN>><message xmlns="http://tuscany.apache.org/impleme +</SPAN>ntation/bpel/example/helloworld.wsdl">Hello</message></hello></TestPart></message> +[java] Status: RESPONSE +[java] Response: <?xml version=<SPAN class="code-quote">"1.0"</SPAN> encoding=<SPAN class="code-quote">"UTF-8"</SPAN>?> +[java] <message><TestPart><hello xmlns=<SPAN class="code-quote">"http:<SPAN class="code-comment">//tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"</SPAN>>Hello World</hello></TestPart></message> +</SPAN>[java] Hello World +[java] Stopping BPELHelloWorldComponent +[java] Stopped \!\!\! + +BUILD SUCCESSFUL +Total time: 36 seconds +</PRE> +</DIV></DIV> +<P><B>Building And Running The Sample Using Maven</B></P> + +<P>With either the binary or source distributions the sample can be built and run<BR> +using Maven as follows. When using Maven, a simple test is present that exercise<BR> +the same logic as the client to invoke the BPEl process.</P> +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +cd helloworld-bpel +mvn +</PRE> +</DIV></DIV> +<P>You should see the following output from the test phase.</P> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> +\------------------------------------------------------\- +T E S T S +\------------------------------------------------------\- +Running helloworld.BPELHelloWorldTestCase +Starting BPELHelloWorldComponent +>>> Deploying : D:\dev\Opensource\Apache\Tuscany\source\java-sca-1.1\samples\helloworld-bpel\target\classes +::arg:::::: <?xml version=<SPAN class="code-quote">"1.0"</SPAN> encoding=<SPAN class="code-quote">"UTF-8"</SPAN>?> +<hello xmlns=<SPAN class="code-quote">"http:<SPAN class="code-comment">//tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"</SPAN>><message xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld +</SPAN>.wsdl">Hello</message></hello> +::message:: <?xml version=<SPAN class="code-quote">"1.0"</SPAN> encoding=<SPAN class="code-quote">"UTF-8"</SPAN>?> +<message><TestPart><hello xmlns=<SPAN class="code-quote">"http:<SPAN class="code-comment">//tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"</SPAN>><message xmlns="http://tuscany.apache.org/implementation/bpel +</SPAN>/example/helloworld.wsdl">Hello</message></hello></TestPart></message> +Status: RESPONSE +Response: <?xml version=<SPAN class="code-quote">"1.0"</SPAN> encoding=<SPAN class="code-quote">"UTF-8"</SPAN>?> +<message><TestPart><hello xmlns=<SPAN class="code-quote">"http:<SPAN class="code-comment">//tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"</SPAN>>Hello World</hello></TestPart></message> +</SPAN>Stopping BPELHelloWorldComponent +Stopped \!\!\! +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.656 sec + +Results : + +Tests run: 1, Failures: 0, Errors: 0, Skipped: 0 + +[INFO] [jar:jar] +[INFO] Building jar: D:\dev\Opensource\Apache\Tuscany\source\java-sca-1.1\samples\helloworld-bpel\target\sample-helloworld-bpel.jar +[INFO] [install:install] +[INFO] Installing D:\dev\Opensource\Apache\Tuscany\source\java-sca-1.1\samples\helloworld-bpel\target\sample-helloworld-bpel.jar to C:\Documents and Settings\lresend +e\.m2\repository\org\apache\tuscany\sca\sample-helloworld-bpel\1.1-incubating-SNAPSHOT\sample-helloworld-bpel-1.1-incubating-SNAPSHOT.jar +[INFO] \-----------------------------------------------------------------------\- +[INFO] BUILD SUCCESSFUL +[INFO] \-----------------------------------------------------------------------\- +[INFO] Total time: 53 seconds +[INFO] Finished at: Sun Jan 13 09:54:39 PST 2008 +[INFO] Final Memory: 24M/43M +[INFO] \-----------------------------------------------------------------------\- +</PRE> +</DIV></DIV> + +<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent"> +<PRE class="code-java"> + +</PRE> +</DIV></DIV> + +<P>This shows that the Junit test cases have run successfully.</P> + +<H4><A name="Samples-Beta1-helloworldbpelwebapp"></A>helloworld-bpel-webapp</H4> + +<H3><A name="Samples-Beta1-implementationcomposite"></A>implementation-composite</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H4><A name="Samples-Beta1-helloworldrecursive"></A>helloworld-recursive</H4> + +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR>Understand and Document</TD></TR></TABLE></DIV> + +<H4><A name="Samples-Beta1-helloworldrecursivews"></A>helloworld-recursive-ws</H4> + +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H3><A name="Samples-Beta1-implementationextension"></A>implementation-extension</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H3><A name="Samples-Beta1-implementationjava"></A>implementation-java</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H4><A name="Samples-Beta1-contributioncalculator"></A>contribution-calculator</H4> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H3><A name="Samples-Beta1-implementation.osgi"></A>implementation.osgi</H3> + +<H4><A name="Samples-Beta1-dosgicalculator"></A>dosgi-calculator</H4> + + +<H4><A name="Samples-Beta1-dosgicalculatoroperations"></A>dosgi-calculator-operations</H4> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H3><A name="Samples-Beta1-implementationscript"></A>implementation-script</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H4><A name="Samples-Beta1-contributioncalculator"></A>contribution-calculator</H4> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H3><A name="Samples-Beta1-implementationspring"></A>implementation-spring</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H4><A name="Samples-Beta1-contributionhelloworldspring"></A>contribution-helloworld-spring</H4> + +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H4><A name="Samples-Beta1-helloworldspringwebapp"></A>helloworld-spring-webapp</H4> + +<H3><A name="Samples-Beta1-implementationwebapp"></A>implementation-webapp</H3> + +<H4><A name="Samples-Beta1-helloworldjaxrswebapp"></A>helloworld-jaxrs-webapp</H4> + + +<H4><A name="Samples-Beta1-helloworldjmswebapp"></A>helloworld-jms-webapp</H4> + + +<H4><A name="Samples-Beta1-helloworldjsclientwebapp"></A>helloworld-js-client-webapp</H4> + + +<H4><A name="Samples-Beta1-helloworldjsfwebapp"></A>helloworld-jsf-webapp</H4> + + +<H4><A name="Samples-Beta1-helloworldjspwebapp"></A>helloworld-jsp-webapp</H4> + + +<H4><A name="Samples-Beta1-helloworldservletwebapp"></A>helloworld-servlet-webapp</H4> + + +<H4><A name="Samples-Beta1-helloworldstripeswebapp"></A>helloworld-stripes-webapp</H4> + +<H3><A name="Samples-Beta1-loggingscribe"></A>logging-scribe</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H3><A name="Samples-Beta1-mavenosgijunit"></A>maven-osgi-junit</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H4><A name="Samples-Beta1-calculatorosgi"></A>calculator-osgi</H4> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H4><A name="Samples-Beta1-calculatorrestosgi"></A>calculator-rest-osgi</H4> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H3><A name="Samples-Beta1-scaclient"></A>sca-client</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H4><A name="Samples-Beta1-calculatorscaclient"></A>calculator-scaclient</H4> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H4><A name="Samples-Beta1-helloworldscaclient"></A>helloworld-scaclient</H4> + +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H2><A name="Samples-Beta1-applications"></A>applications</H2> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H3><A name="Samples-Beta1-store"></A>store</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + +<H3><A name="Samples-Beta1-storewebapp"></A>store-webapp</H3> +<DIV class="panelMacro"><TABLE class="noteMacro"><COLGROUP><COL width="24"><COL></COLGROUP><TR><TD valign="top"><IMG src="https://cwiki.apache.org/confluence/images/icons/emoticons/warning.gif" width="16" height="16" align="absmiddle" alt="" border="0"></TD><TD><B>TODO</B><BR><FONT color="#000000">Understand and Document</FONT></TD></TR></TABLE></DIV> + </DIV> + + <DIV class="tabletitle"> + Children + <SPAN class="smalltext" id="show" style="display: inline;"> + <A href="javascript:showChildren()">Show Children</A></SPAN> + <SPAN class="smalltext" id="hide" style="display: none;"> + <A href="javascript:hideChildren()">Hide Children</A></SPAN> + </DIV> + <DIV class="greybox" id="children" style="display: none;"> + <A href="20-beta-samples-documentation.html" title="2.0-beta-Samples documentation">2.0-beta-Samples documentation</A> + <SPAN class="smalltext">(Apache Tuscany Docs 2.x)</SPAN> + <BR> + </DIV> + </DIV> + </DIV> + </TD> + </TR> + </TABLE> + + <!-- footer --> + <TABLE border="0" cellpadding="2" cellspacing="0" width="100%"> + <TR> + <TD align="left" valign="middle" class="footer"> + + <IMG src="http://static.delicious.com/img/delicious.small.gif" height="10" width="10" alt="Delicious"> + <A href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title),'delicious','toolbar=no,width=550,height=550'); return false;">Bookmark this on Delicious</A> + + <IMG src="http://digg.com/img/badges/16x16-digg-guy.gif" width="16" height="16" alt="Digg!"> + <A href="" onclick="window.open('http://digg.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&topic=programming');">Digg this</A> + <!-- Slicker, but no text + <script type="text/javascript"> + digg_skin = 'icon'; + digg_window = 'new'; + digg_title = 'Apache Geronimo v3.0 Documentation : Samples- Beta1'; + digg_topic = 'programming'; + </script> + <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script> + --> + + </TD> + <TD align="right" valign="middle" class="footer"> + <A href="http://cwiki.apache.org/GMOxPMGT/geronimo-privacy-policy.html">Privacy Policy</A> - + Copyright © 2003-2010, The Apache Software Foundation, Licensed under <A href="http://www.apache.org/licenses/LICENSE-2.0">ASL 2.0.</A> + </TD> + </TR> + </TABLE> + + </BODY> +</HTML>
\ No newline at end of file |