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 Fri, 30 Apr 2010 13:21:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/5/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 (16)</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" >* [AriesTrader Sample|https://cwiki.apache.org/ARIES/ariestrader.html]
<br> <br></td></tr>
            <tr><td class="diff-changed-lines" >h2. Obtaining a Geronimo <span
class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">3.0-SNAPSHOT</span>
<span class="diff-added-words"style="background-color: #dfd;">3.0-M1</span> server
{anchor: geronimo} <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Until
Geronimo 3.0-M1 is delivered you will have to use Geronimo 3.0-SNAPSHOT. <br></td></tr>
            <tr><td class="diff-unchanged" >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: <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >{code} <br> <br></td></tr>
            <tr><td class="diff-changed-lines" >Alternatively you can pull an
image from the most recent Geronimo <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">build
from:</span> <span class="diff-added-words"style="background-color: #dfd;">build.</span>
<br></td></tr>
            <tr><td class="diff-unchanged" > <br> <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;">You
must build the Aries Samples locally until they are released.  In the interim you can perform
the following steps: <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">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></td></tr>
            <tr><td class="diff-unchanged" >{code:border=solid} <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">svn
co https://svn.apache.org/repos/asf/incubator/aries/trunk aries-trunk <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">svn
co https://svn.apache.org/repos/asf/incubator/aries/tags aries-tags <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-trunk/parent</span>
<span class="diff-added-words"style="background-color: #dfd;">aries-tags/parent-0.1-incubating</span>
<br></td></tr>
            <tr><td class="diff-unchanged" >mvn clean install <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-trunk/eba-maven-plugin</span>
<span class="diff-added-words"style="background-color: #dfd;">aries-tags/eba-maven-plugin-0.1-incubating</span>
<br></td></tr>
            <tr><td class="diff-unchanged" >mvn clean install <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-trunk</span>
<span class="diff-added-words"style="background-color: #dfd;">aries-tags/testsupport-0.1-incubating</span>
<br></td></tr>
            <tr><td class="diff-unchanged" >mvn clean install <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">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-unchanged" >{code} <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">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>cd aries-samples <br>mvn clean install <br>{code} <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-changed-lines" >* Blog - <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">aries-trunk/samples/blog/blog-jpa-eba/target/org.apache.aries.samples.blog.jpa.eba-0.1-incubating-SNAPSHOT.eba</span>
<span class="diff-added-words"style="background-color: #dfd;">aries-tags/samples-0.1-incubating/blog/blog-jpa-eba/target/org.apache.aries.samples.blog.jpa.eba-0.1-incubating.eba</span>
<br></td></tr>
            <tr><td class="diff-changed-lines" >* AriesTrader - <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">aries-trunk/samples/ariestrader/assemblies/ariestrader-all-eba/target/org.apache.aries.samples.ariestrader.all-0.2-incubating-SNAPSHOT.eba</span>
<span class="diff-added-words"style="background-color: #dfd;">aries-tags/samples-0.1-incubating/ariestrader/assemblies/ariestrader-all-eba/target/org.apache.aries.samples.ariestrader.all-0.1-incubating.eba</span>
<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" >Deploy either Blog, AriesTrader, or
both sample EBAs using the Geronimo web console or the following commands: <br>{code:border=solid}
<br></td></tr>
            <tr><td class="diff-changed-lines" >./bin/deploy -u system -p manager
deploy <span class="diff-changed-words">org.apache.aries.samples.blog.jpa.eba-0.1-incubating<span
class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">-SNAPSHOT</span>.eba</span>
<br></td></tr>
            <tr><td class="diff-unchanged" >AND/OR <br></td></tr>
            <tr><td class="diff-changed-lines" >./bin/deploy -u system -p manager
deploy <span class="diff-changed-words">org.apache.aries.samples.ariestrader.all-0.1-incubating<span
class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">-SNAPSHOT</span>.eba</span>
<br></td></tr>
            <tr><td class="diff-unchanged" >{code} <br> <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>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:</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/incubator/aries/tags
aries-tags
</span>cd aries-tags/parent-0.1-incubating
mvn clean install
cd aries-tags/eba-maven-plugin-0.1-incubating
mvn clean install
cd aries-tags/testsupport-0.1-incubating
mvn clean install
cd aries-tags/org.apache.aries.util-0.1-incubating
mvn clean install
cd aries-tags/blueprint-0.1-incubating
mvn clean install
cd aries-tags/jndi-0.1-incubating
mvn clean install
cd aries-tags/transaction-0.1-incubating
mvn clean install
cd aries-tags/web-0.1-incubating
mvn clean install
cd aries-tags/application-0.1-incubating
mvn clean install
cd aries-tags/jmx-0.1-incubating
mvn clean install
cd aries-tags/jpa-0.1-incubating
mvn clean install
cd aries-tags/samples-0.1-incubating
mvn clean install
</pre>
</div></div>
<p>Once the Aries 0.1-incubating samples (and other artifacts) have been released you
should be able to just do the following:</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/incubator/aries/tags/samples-0.1-incubating
aries-samples
</span>cd aries-samples
mvn clean install
</pre>
</div></div>

<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 - aries-tags/samples-0.1-incubating/blog/blog-jpa-eba/target/org.apache.aries.samples.blog.jpa.eba-0.1-incubating.eba</li>
	<li>AriesTrader - aries-tags/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 either Blog, AriesTrader, or both sample EBAs using the Geronimo web console
or the following commands:</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
./bin/deploy -u system -p manager deploy org.apache.aries.samples.blog.jpa.eba-0.1-incubating.eba
AND/OR
./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=3&originalVersion=2">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