Sha256: ae4b802b88e1c61f2a7ae37c9f524ac248a058bf3576ef130e06bac4778fe95f

Contents?: true

Size: 1.89 KB

Versions: 4

Compression:

Stored size: 1.89 KB

Contents

Deploying
---------
Copy or move the $JETTY-HOME/contexts-available/test-annotations.d
directory to $JETTY-HOME/contexts, and copy or move the
$JETTY-HOME/contexts-available/test-annotations.xml file to
$JETTY-HOME/contexts.

Edit $JETTY-HOME/contexts/test-annotations.xml and uncomment
the setup for the transaction manager of your choice. The demo
works with either JOTM (http://jotm.objectweb.org) or Atomikos
(http://www.atomikos.com).

Download and copy the jar files necessary for your transaction 
manager to $JETTY-HOME/lib/ext. See the jetty wiki pages for
JOTM(http://docs.codehaus.org/display/JETTY/JOTM)  and 
Atomikos (http://docs.codehaus.org/display/JETTY/Atomikos)
for more info.

The example uses the Derby database, so also download the
derby.jar and derbytools.jar file from the Derby site 
(http://db.apache.org/derby) and put them in $JETTY-HOME/lib/ext.



Running the Demo
----------------
You run the demo like so:
   
   java -DOPTIONS=plus,ext,annotations,default -jar start.jar 


Adding Support for a Different Transaction Manager
--------------------------------------------------

1. Edit the filter.properties file in 
   $JETTY-HOME/modules/examples/jetty-annotation-example-webapp/src/etc/templates
   and add a new set of token and replacement strings following the
   pattern established for ATOMIKOS and JOTM.

2. Edit the jetty-env.xml file in
   $JETTY-HOME/modules/examples/jetty-annotation-example-webapp/src/etc/templates
   and add configuration for new transaction manager following the
   pattern established for the other transaction managers.

3. Edit the annotations-context.xml file in
   $JETTY-HOME/modules/examples/jetty-annotation-example-webapp/src/etc/templates
   and add configuration for the new transaction manager following
   the pattern established for the other transaction managers.

4. Rebuild $JETTY-HOME/modules/examples/jetty-annotation-example-webapp (mvn clean install).

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
miso-java-0.1.5 jetty/examples/test-annotations/README.txt
miso-java-0.1.4 jetty/examples/test-annotations/README.txt
miso-java-0.1.3 jetty/examples/test-annotations/README.txt
miso-java-0.1.2 jetty/examples/test-annotations/README.txt