geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [CONF] Apache Geronimo Development > Apache Aries Samples running in Geronimo 3.0
Date Wed, 23 Jun 2010 13:13:01 GMT
    <base href="">
            <link rel="stylesheet" href="/confluence/s/1810/9/1/_/styles/combined.css?spaceKey=GMOxDEV&amp;forWysiwyg=true"
<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="">Apache
Aries Samples running in Geronimo 3.0</a></h2>
    <h4>Page <b>edited</b> by             <a href="">Joe
                         <h4>Changes (2)</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" >{note} <br> <br></td></tr>
            <tr><td class="diff-deleted-lines" style="color:#999;background-color:#fdd;text-decoration:line-through;">Follow
the Apache Geronimo documentation to unpack and start the server image. <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">Follow
the Apache Geronimo documentation to unpack and start the server image (Hint: unzip or untar
the server image and use something like &quot;./bin/ run&quot; to start
the server). <br></td></tr>
            <tr><td class="diff-unchanged" > <br>h2. Obtaining the Aries
Samples {anchor: aries} <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
</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:
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
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>
	<li><a href="" class="external-link"
rel="nofollow">Aries Blog Sample</a></li>
	<li><a href="" class="external-link"
rel="nofollow">AriesTrader Sample</a></li>

<h2><a name="ApacheAriesSamplesrunninginGeronimo3.0-ObtainingaGeronimo3.0M1server"></a>Obtaining
a Geronimo 3.0-M1 server <a name="ApacheAriesSamplesrunninginGeronimo3.0-geronimo"></a></h2>
<p>You can download an image of the "Geronimo Non-Certified Web Container" (either Tomcat
or Jetty) from this location:<br/>
<a href="" class="external-link"
rel="nofollow">Geronimo 3.0-M1 download page</a></p>
<div class='panelMacro'><table class='noteMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/warning.gif" width="16" height="16"
align="absmiddle" alt="" border="0"></td><td>You <b>must</b> use
a Web Container image and not a "Little-G" (minimal) version of the server. The Little-G version
does not include necessary components for deploying the Apache Aries samples.</td></tr></table></div>

<p>Follow the Apache Geronimo documentation to unpack and start the server image (Hint:
unzip or untar the server image and use something like "./bin/ run" to start the

<h2><a name="ApacheAriesSamplesrunninginGeronimo3.0-ObtainingtheAriesSamples"></a>Obtaining
the Aries Samples <a name="ApacheAriesSamplesrunninginGeronimo3.0-aries"></a></h2>
<p>There are several choices to obtain the Apache Aries EBA samples.  </p>
	<li>You can choose to obtain the source code and build the samples yourself.  This
is useful if you are using the samples as a learning tool to build your own application.</li>
	<li>You can also choose to simply download the EBAs from the latest Apache Aries samples
release without building Apache Aries.</li>

<p>In either case, you can find the necessary downloads (source or EBA artifacts) at
this location:<br/>
<a href="/confluence/display/ARIES/Downloads" title="Downloads">Latest Apache Aries

<h2><a name="ApacheAriesSamplesrunninginGeronimo3.0-BuildingtheApacheAriessamples"></a>Building
the Apache Aries samples <a name="ApacheAriesSamplesrunninginGeronimo3.0-ariesbuild"></a></h2>
<p>If you choose not to build the samples you can skip to <a href="#ApacheAriesSamplesrunninginGeronimo3.0-ariesdeploy">Deploy
the Aries Samples DataSource</a> <br/>
Download and unzip the source zip for the <a href="/confluence/display/ARIES/Downloads"
title="Downloads">Latest Apache Aries 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
<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>
	<li>Blog jdbc sample - samples-0.1-incubating/blog/blog-jdbc-eba/target/</li>
	<li>Blog jpa sample - samples-0.1-incubating/blog/blog-jpa-eba/target/</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>

<h2><a name="ApacheAriesSamplesrunninginGeronimo3.0-DeploytheAriesSamplesDataSource"></a>Deploy
the Aries Samples DataSource <a name="ApacheAriesSamplesrunninginGeronimo3.0-ariesdeploy"></a></h2>
<p>Each of the two samples requires a Datasource.  However, before you can deploy the
Datasources you need to obtain the tranql-connector-derby-embed-xa rar.   Unfortunately, this
was not included in the Geronimo 3.0-M1 server images (but will be included in future images).
	<li>For 3.0-M1 release you can obtain the necessary rar from any of the ibiblio mirrors:
  <a href=""
class="external-link" rel="nofollow">Tranql RAR for derby</a></li>
	<li>You must also download the XML for the datasource definitions - located here: <a

<p>After you have both of the necessary files in your local file system use the following
command to deploy the datasource:  </p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
./bin/deploy -u system -p manager deploy tranql-connector-derby-embed-xa-1.6.rar aries-datasource.xml

<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
Blog jpa
./bin/deploy -u system -p manager deploy
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

<h2><a name="ApacheAriesSamplesrunninginGeronimo3.0-RunningtheSamples"></a>Running
the Samples</h2>
<p>You should now be able to access the samples as follows:</p>
	<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"

<p>For details on how to interact with the Samples and the sample structure reference
the following links:</p>
	<li><a href="" class="external-link"
rel="nofollow">Aries Blog Sample</a> - specifically reference the "About the Blog
Sample" section.</li>
	<li><a href="" 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>

        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href=""
class="grey">Change Notification Preferences</a>
        <a href="">View
        <a href="">View
        <a href=";showCommentArea=true#addcomment">Add

View raw message