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 Thu, 29 Apr 2010 04:28: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 (3)</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" >Use your favorite command to start
the Geronimo Server of choice <br> <br></td></tr>
            <tr><td class="diff-changed-lines" >h2. Deploy the <span class="diff-added-words"style="background-color:
#dfd;">Aries</span> Samples DataSource <br></td></tr>
            <tr><td class="diff-unchanged" >Each of the two samples requires a
Datasource.   You can deploy the datasources for both samples with this one file [aries-datasource.xml|^aries-datasource.xml].
   <br>Use the following command: <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-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">h2.
Deploy the Sample EBA (either Blog, AriesTrader, or both) using the Geronimo web console or
the following commands: <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">h2.
Deploy the Sample EBA  <br>Deploy either Blog, AriesTrader, or both sample EBAs using
the Geronimo web console or the following commands: <br></td></tr>
            <tr><td class="diff-unchanged" >{code:border=solid} <br>./bin/deploy
-u system -p manager deploy org.apache.aries.samples.blog.jpa.eba-0.1-incubating-SNAPSHOT.eba
<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.0SNAPSHOTserver"></a>Obtaining
a Geronimo 3.0-SNAPSHOT server <a name="ApacheAriesSamplesrunninginGeronimo3.0-geronimo"></a></h2>
<p>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 from:</p>


<h2><a name="ApacheAriesSamplesrunninginGeronimo3.0-BuildingtheAriesSamples"></a>Building
the Aries Samples <a name="ApacheAriesSamplesrunninginGeronimo3.0-aries"></a></h2>
<p>You must build the Aries Samples locally until they are released.  In the interim
you can perform the following steps:</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/trunk
aries-trunk
</span>cd aries-trunk/parent
mvn clean install
cd aries-trunk/eba-maven-plugin
mvn clean install
cd aries-trunk
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-trunk/samples/blog/blog-jpa-eba/target/org.apache.aries.samples.blog.jpa.eba-0.1-incubating-SNAPSHOT.eba</li>
	<li>AriesTrader - aries-trunk/samples/ariestrader/assemblies/ariestrader-all-eba/target/org.apache.aries.samples.ariestrader.all-0.2-incubating-SNAPSHOT.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=1272514919784">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-SNAPSHOT.eba
AND/OR
./bin/deploy -u system -p manager deploy org.apache.aries.samples.ariestrader.all-0.1-incubating-SNAPSHOT.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=2&originalVersion=1">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