geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Geronimo Development > Apache Aries Samples running in Geronimo 3.0
Date Wed, 19 May 2010 19:23:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/1/_/styles/combined.css?spaceKey=GMOxDEV&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="http://cwiki.apache.org/confluence/display/GMOxDEV/Apache+Aries+Samples+running+in+Geronimo+3.0">Apache
Aries Samples running in Geronimo 3.0</a></h2>
    <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~jbohn">Joe
Bohn</a>
    </h4>
        <br/>
                         <h4>Changes (13)</h4>
                                 
    
<div id="page-diffs">
            <table class="diff" cellpadding="0" cellspacing="0">
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" > <br>h2. Building the Aries
Samples {anchor: aries} <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">At
this point in time Aries 0.1-incubating is in the process of being released.  Once it is released
you will be able to just build (or download) the sample applications.   <br>However,
in the interim you can do the following: <br>{code:border=solid} <br>svn co https://svn.apache.org/repos/asf/incubator/aries/tags
aries-tags <br>cd aries-tags/parent-0.1-incubating <br>mvn clean install <br>cd
aries-tags/eba-maven-plugin-0.1-incubating <br>mvn clean install <br>cd aries-tags/testsupport-0.1-incubating
<br>mvn clean install <br>cd aries-tags/org.apache.aries.util-0.1-incubating <br>mvn
clean install <br>cd aries-tags/blueprint-0.1-incubating <br>mvn clean install
<br>cd aries-tags/jndi-0.1-incubating <br>mvn clean install <br>cd aries-tags/transaction-0.1-incubating
<br>mvn clean install <br>cd aries-tags/web-0.1-incubating <br>mvn clean
install <br>cd aries-tags/application-0.1-incubating <br>mvn clean install <br>cd
aries-tags/jmx-0.1-incubating <br>mvn clean install <br>cd aries-tags/jpa-0.1-incubating
<br>mvn clean install <br>cd aries-tags/samples-0.1-incubating <br>mvn clean
install <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Download
and unzip the source zip for the [latest release|ARIES:Downloads] of Aries Samples and build
the project.  <br></td></tr>
            <tr><td class="diff-unchanged" >{code} <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">Once
the Aries 0.1-incubating samples (and other artifacts) have been released you should be able
to just do the following: <br>{code:border=solid} <br>svn co https://svn.apache.org/repos/asf/incubator/aries/tags/samples-0.1-incubating
aries-samples <br></td></tr>
            <tr><td class="diff-changed-lines" >cd <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">aries-samples</span>
<span class="diff-added-words"style="background-color: #dfd;">samples-0.1-incubating/</span>
<br></td></tr>
            <tr><td class="diff-changed-lines" >mvn <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">clean</span>
install <br></td></tr>
            <tr><td class="diff-unchanged" >{code} <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">This
procedure will pull in the binaries from the latest release and its dependencies. <br></td></tr>
            <tr><td class="diff-unchanged" > <br>What you are really interested
in here are the sample EBAs for Blog and AriesTrader which can be found at: <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">*
Blog - aries-tags/samples-0.1-incubating/blog/blog-jpa-eba/target/org.apache.aries.samples.blog.jpa.eba-0.1-incubating.eba
<br>* AriesTrader - aries-tags/samples-0.1-incubating/ariestrader/assemblies/ariestrader-all-eba/target/org.apache.aries.samples.ariestrader.all-0.1-incubating.eba
<br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">*
Blog jdbc sample - samples-0.1-incubating/blog/blog-jdbc-eba/target/org.apache.aries.samples.blog.jdbc.eba-0.1-incubating.eba
<br>* Blog jpa sample - samples-0.1-incubating/blog/blog-jpa-eba/target/org.apache.aries.samples.blog.jpa.eba-0.1-incubating.eba
<br>* AriesTrader jdbc sample - samples-0.1-incubating/ariestrader/assemblies/ariestrader-jdbc-eba/target/org.apache.aries.samples.ariestrader.jdbc-0.1-incubating.eba
<br>* AriesTrader all sample - samples-0.1-incubating/ariestrader/assemblies/ariestrader-all-eba/target/org.apache.aries.samples.ariestrader.all-0.1-incubating.eba
<br></td></tr>
            <tr><td class="diff-unchanged" > <br>h2. Start the Geronimo
Server {anchor: start-server} <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" > <br>h2. Deploy the Sample EBA
 <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">Deploy
either Blog, AriesTrader, or both sample EBAs using the Geronimo web console or the following
commands: <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Deploy
the Blog or AriesTrader EBAs using the Geronimo web console or the following commands (NOTE:
you should only deploy one version of each sample at a time - for example only the jdbc Blog
or jpa Blog sample and not both concurrently): <br></td></tr>
            <tr><td class="diff-unchanged" >{code:border=solid} <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Blog
jdbc <br>./bin/deploy -u system -p manager deploy org.apache.aries.samples.blog.jdbc.eba-0.1-incubating.eba
<br>Blog jpa <br></td></tr>
            <tr><td class="diff-unchanged" >./bin/deploy -u system -p manager
deploy org.apache.aries.samples.blog.jpa.eba-0.1-incubating.eba <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">AND/OR
<br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">AriesTrader
jdbc <br>./bin/deploy -u system -p manager deploy org.apache.aries.samples.ariestrader.jdbc-0.1-incubating.eba
<br>AriesTrader all <br></td></tr>
            <tr><td class="diff-unchanged" >./bin/deploy -u system -p manager
deploy org.apache.aries.samples.ariestrader.all-0.1-incubating.eba <br>{code} <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
        </table>
</div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <style type='text/css'>/*<![CDATA[*/
table.ScrollbarTable  {border: none;padding: 3px;width: 100%;padding: 3px;margin: 0px;background-color:
#f0f0f0}
table.ScrollbarTable td.ScrollbarPrevIcon {text-align: center;width: 16px;border: none;}
table.ScrollbarTable td.ScrollbarPrevName {text-align: left;border: none;}
table.ScrollbarTable td.ScrollbarParent {text-align: center;border: none;}
table.ScrollbarTable td.ScrollbarNextName {text-align: right;border: none;}
table.ScrollbarTable td.ScrollbarNextIcon {text-align: center;width: 16px;border: none;}

/*]]>*/</style><div class="Scrollbar"><table class='ScrollbarTable'><tr><td
width='33%' class='ScrollbarPrevName'>&nbsp;</td><td width='33%' class='ScrollbarParent'><sup><a
href="/confluence/display/GMOxDEV/Index"><img border='0' align='middle' src='/confluence/images/icons/up_16.gif'
width='8' height='8'></a></sup><a href="/confluence/display/GMOxDEV/Index">Index</a></td><td
width='33%' class='ScrollbarNextName'>&nbsp;<a href="/confluence/display/GMOxDEV/Apache+Geronimo+With+A+Monitor+Component+%28JMX+and+JConsole%29">Apache
Geronimo With A Monitor Component (JMX and JConsole)</a></td><td class='ScrollbarNextIcon'><a
href="/confluence/display/GMOxDEV/Apache+Geronimo+With+A+Monitor+Component+%28JMX+and+JConsole%29"><img
border='0' align='middle' src='/confluence/images/icons/forwd_16.gif' width='16' height='16'></a></td></tr></table></div>
<p><a name="ApacheAriesSamplesrunninginGeronimo3.0-top"></a><br/>
It is possible to install and run several of the Apache Aries sample EBAs in Apache Geronimo
3.0-SNAPSHOT. These are OSGi enabled Web Applications and other bundles that leverage capabilities
such as Blueprint, JNDI, JDBC, JPA, and JTA in OSGi specified ways.  The samples are packaged
in an EBA for deployment.  The current samples are the Aries Blog and AriesTrader.   </p>

<p>You can find more details on the samples here:</p>
<ul>
	<li><a href="https://cwiki.apache.org/ARIES/blog-sample.html" class="external-link"
rel="nofollow">Aries Blog Sample</a></li>
	<li><a href="https://cwiki.apache.org/ARIES/ariestrader.html" class="external-link"
rel="nofollow">AriesTrader Sample</a></li>
</ul>


<h2><a name="ApacheAriesSamplesrunninginGeronimo3.0-ObtainingaGeronimo3.0M1server"></a>Obtaining
a Geronimo 3.0-M1 server <a name="ApacheAriesSamplesrunninginGeronimo3.0-geronimo"></a></h2>
<p>Until Geronimo 3.0-M1 is delivered you will have to use Geronimo 3.0-SNAPSHOT.<br/>
The first step is to obtain a Geronimo 3.0-SNAPSHOT server javaee6 image (either Jetty or
Tomcat should work).<br/>
If you prefer you can build your own image after first checking out the code as follows:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
svn co https:<span class="code-comment">//svn.apache.org/repos/asf/geronimo/server/trunk
 geronimo-trunk
</span>cd geronimo-trunk
mvn clean install
</pre>
</div></div>

<p>Alternatively you can pull an image from the most recent Geronimo build.</p>


<h2><a name="ApacheAriesSamplesrunninginGeronimo3.0-BuildingtheAriesSamples"></a>Building
the Aries Samples <a name="ApacheAriesSamplesrunninginGeronimo3.0-aries"></a></h2>
<p>Download and unzip the source zip for the <a href="/confluence/display/ARIES/Downloads"
title="Downloads">latest release</a> of Aries Samples and build the project. </p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
cd samples-0.1-incubating/
mvn install
</pre>
</div></div>
<p>This procedure will pull in the binaries from the latest release and its dependencies.</p>

<p>What you are really interested in here are the sample EBAs for Blog and AriesTrader
which can be found at:</p>
<ul>
	<li>Blog jdbc sample - samples-0.1-incubating/blog/blog-jdbc-eba/target/org.apache.aries.samples.blog.jdbc.eba-0.1-incubating.eba</li>
	<li>Blog jpa sample - samples-0.1-incubating/blog/blog-jpa-eba/target/org.apache.aries.samples.blog.jpa.eba-0.1-incubating.eba</li>
	<li>AriesTrader jdbc sample - samples-0.1-incubating/ariestrader/assemblies/ariestrader-jdbc-eba/target/org.apache.aries.samples.ariestrader.jdbc-0.1-incubating.eba</li>
	<li>AriesTrader all sample - samples-0.1-incubating/ariestrader/assemblies/ariestrader-all-eba/target/org.apache.aries.samples.ariestrader.all-0.1-incubating.eba</li>
</ul>


<h2><a name="ApacheAriesSamplesrunninginGeronimo3.0-StarttheGeronimoServer"></a>Start
the Geronimo Server <a name="ApacheAriesSamplesrunninginGeronimo3.0-startserver"></a></h2>
<p>Use your favorite command to start the Geronimo Server of choice</p>

<h2><a name="ApacheAriesSamplesrunninginGeronimo3.0-DeploytheAriesSamplesDataSource"></a>Deploy
the Aries Samples DataSource</h2>
<p>Each of the two samples requires a Datasource.   You can deploy the datasources for
both samples with this one file <a href="/confluence/download/attachments/20643861/aries-datasource.xml?version=1&amp;modificationDate=1272514919000">aries-datasource.xml</a>.
  <br/>
Use the following command:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
./bin/deploy -u system -p manager deploy ~/.m2/repository/org/tranql/tranql-connector-derby-embed-xa/1.5/tranql-connector-derby-embed-xa-1.5.rar
aries-datasource.xml
</pre>
</div></div>

<h2><a name="ApacheAriesSamplesrunninginGeronimo3.0-DeploytheSampleEBA"></a>Deploy
the Sample EBA </h2>
<p>Deploy the Blog or AriesTrader EBAs using the Geronimo web console or the following
commands (NOTE: you should only deploy one version of each sample at a time - for example
only the jdbc Blog or jpa Blog sample and not both concurrently):</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
Blog jdbc
./bin/deploy -u system -p manager deploy org.apache.aries.samples.blog.jdbc.eba-0.1-incubating.eba
Blog jpa
./bin/deploy -u system -p manager deploy org.apache.aries.samples.blog.jpa.eba-0.1-incubating.eba
AriesTrader jdbc
./bin/deploy -u system -p manager deploy org.apache.aries.samples.ariestrader.jdbc-0.1-incubating.eba
AriesTrader all
./bin/deploy -u system -p manager deploy org.apache.aries.samples.ariestrader.all-0.1-incubating.eba
</pre>
</div></div>

<h2><a name="ApacheAriesSamplesrunninginGeronimo3.0-RunningtheSamples"></a>Running
the Samples</h2>
<p>You should now be able to access the samples as follows:</p>
<ul>
	<li>Blog - <a href="http://localhost:8080/blog" class="external-link" rel="nofollow">http://localhost:8080/blog</a></li>
	<li>AriesTrader - <a href="http://localhost:8080/ariestrader" class="external-link"
rel="nofollow">http://localhost:8080/ariestrader</a></li>
</ul>


<p>For details on how to interact with the Samples and the sample structure reference
the following links:</p>
<ul>
	<li><a href="https://cwiki.apache.org/ARIES/blog-sample.html" class="external-link"
rel="nofollow">Aries Blog Sample</a> - specifically reference the "About the Blog
Sample" section.</li>
	<li><a href="https://cwiki.apache.org/ARIES/ariestrader.html" class="external-link"
rel="nofollow">AriesTrader Sample</a> - specifically reference the "Accessing and
using the AriesTrader sample" and the subsequent "About the AriesTrader Sample" sections.</li>
</ul>



    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="http://cwiki.apache.org/confluence/display/GMOxDEV/Apache+Aries+Samples+running+in+Geronimo+3.0">View
Online</a>
        |
        <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=20643861&revisedVersion=4&originalVersion=3">View
Changes</a>
                |
        <a href="http://cwiki.apache.org/confluence/display/GMOxDEV/Apache+Aries+Samples+running+in+Geronimo+3.0?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message