...
To check out the 2.1.2 samples:
Code Block |
---|
|
svn co https://svn.apache.org/repos/asf/geronimo/samples/tags/samples-parent-2.1.2/ gsamples-2.1.2
|
Note |
---|
This assumes the Geronimo 2.1.2 samples have been released. Prior to release you can checkout the snapshot versions via: svn co https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1 gsamples-2.1 |
Depending on when you look you may find earlier or released versions of the samples under samples/branches and samples/tags. You can browse in any web browser to see what's there. The trunk for samples always contains samples for the highest level version under development https://svn.apache.org/repos/asf/geronimo/samples/trunk
Build using
Code Block |
---|
|
mvn clean install
|
Note |
---|
If you run into the "Could not scan module for TLD files...Filename too long" problem when using Windows platform, please check out samples to a short directory (14 characters or less). |
There are minimal integration tests to assure that the sample plugins can be installed on the framework server. To run this tests use
Code Block |
---|
|
mvn clean install -Pit
|
Note |
---|
The integration tests are not available prior to Geronimo Samples 2.2 |
...
For this you can use any geronimo server such as one of the minimal assemblies or even the framework assembly. After starting geronimo, run ./bin/gsh deploy/list-plugins in another terminal window and follow the instructions. Installing a sample plugin will install the sample-datasource plugin and all other dependencies. Alternatively if you build using
Code Block |
---|
|
mvn clean install -Pit
|
you can find a server with the sample installed in directories such as
Code Block |
---|
|
<sample>/<sample>-jetty/target/geronimo-framework-<version>/.
|
...
After building the sample projects you can find suitable geronimo plans for a sample <sample> in
Code Block |
---|
|
<sample>/<sample>-jetty/target/resources/META-INF/plan.xml
|
...
Create a new datasource using the admin console database wizard, selecting the derby-embed-xa type and naming the database "SampleDatabase" and the datasource "SampleTxDatasource". The admin console will come up with a module Id different from what the samples need, so you have to map them in var/config/artifact_aliases.properties. Insert a line like this:
Code Block |
---|
|
org.apache.geronimo.samples/sample-datasource/2.1.2-SNAPSHOT/car=console.dbpool/SampleDatabase/1.0/car
|
...