Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

xml
Code Block
No Format
xml
mvn clean install -Pit 

you can find a server with the sample installed in directories such as

Code Blocknoformat
xmlxml
<sample>/<sample>-jetty/target/geronimo-framework-<version>/.

...

To check out the 2.1.2 samples:

xml
Code Block
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:

xml
Code Block
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
xmlxml
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
xmlxml
<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:

xml
Code Block
xml
No Format
org.apache.geronimo.samples/sample-datasource/2.1.2/car=console.dbpool/SampleDatabase/1.0/car

...