...
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 | |
---|---|
No Format | |
xml | mvn clean install -Pit |
you can find a server with the sample installed in directories such as
Code Blocknoformat | ||
---|---|---|
xml | xml | <sample>/<sample>-jetty/target/geronimo-framework-<version>/. |
...
To check out the 2.1.2 samples:
Code Block | xml | xml
---|
No Format |
svn co https://svn.apache.org/repos/asf/geronimo/samples/tags/samples-parent-2.1.2/ gsamples-2.1.2 |
...
Build the samples using this command:
Code Block | xml | xml
---|
No Format |
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 this command:
Code Blocknoformat | ||
---|---|---|
xml | xml | mvn clean install -Pit |
Note |
---|
The integration tests are not available prior to Geronimo Samples 2.2 |
...
After building the sample projects you can find suitable geronimo plans for a sample <sample> in
Code Blocknoformat | ||
---|---|---|
xml | xml | <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 | xml | xml
---|
No Format |
org.apache.geronimo.samples/sample-datasource/2.1.2/car=console.dbpool/SampleDatabase/1.0/car |
...