[jboss-svn-commits] JBL Code SVN: r37179 - in labs/jbosstm/trunk/ArjunaJTA/quickstarts: javax_transaction and 6 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Jun 30 08:09:00 EDT 2011
Author: tomjenkinson
Date: 2011-06-30 08:08:59 -0400 (Thu, 30 Jun 2011)
New Revision: 37179
Added:
labs/jbosstm/trunk/ArjunaJTA/quickstarts/integration/src/main/java/org/jboss/narayana/quickstarts/
labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/run.bat
labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/run.sh
labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/src/main/java/org/jboss/narayana/jta/quickstarts/
labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/run.bat
labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/run.sh
labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/run.bat
labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/run.sh
labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/src/main/java/org/jboss/narayana/jta/quickstarts/
labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/readme.txt
labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/run.bat
labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/run.sh
labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/src/main/java/org/jboss/narayana/jta/quickstarts/
Removed:
labs/jbosstm/trunk/ArjunaJTA/quickstarts/integration/src/main/java/org/jboss/narayana/examples/
labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/src/main/java/org/jboss/narayana/jta/examples/
labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/src/main/java/org/jboss/narayana/jta/examples/
labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/readme
labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/src/main/java/org/jboss/narayana/jta/examples/
Modified:
labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/readme.txt
labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/readme.txt
labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/readme.txt
Log:
JBTM-843 added the copyright note and added the run scripts
Modified: labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/readme.txt
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/readme.txt 2011-06-30 11:29:19 UTC (rev 37178)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/readme.txt 2011-06-30 12:08:59 UTC (rev 37179)
@@ -1,3 +1,16 @@
+JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
+LLC, and others contributors as indicated by the @authors tag. All rights
+reserved. See the copyright.txt in the distribution for a full listing of
+individual contributors. This copyrighted material is made available to anyone
+wishing to use, modify, copy, or redistribute it subject to the terms and
+conditions of the GNU Lesser General Public License, v. 2.1. This program
+is distributed in the hope that it will be useful, but WITHOUT A WARRANTY;
+without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE. See the GNU Lesser General Public License for more details. You
+should have received a copy of the GNU Lesser General Public License, v.2.1
+along with this distribution; if not, write to the Free Software Foundation,
+Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
There is 1 javax.transaction examples:
1. Starting and ending transactions, examining transacton status, timeouts etc:
@@ -7,6 +20,6 @@
To run an example use the maven java exec plugin. For example to run the first example:
- mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.TransactionExample
+ mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.TransactionExample
By defalt transaction logs are stored in the current working directory (ObjectStore and PutObjectStoreDirHere).
Added: labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/run.bat
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/run.bat (rev 0)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/run.bat 2011-06-30 12:08:59 UTC (rev 37179)
@@ -0,0 +1,6 @@
+ at echo off
+
+echo "Running quickstart"
+
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.TransactionExample
+IF %ERRORLEVEL% NEQ 0 exit -1
Property changes on: labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/run.bat
___________________________________________________________________
Added: svn:executable
+ *
Added: labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/run.sh
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/run.sh (rev 0)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/run.sh 2011-06-30 12:08:59 UTC (rev 37179)
@@ -0,0 +1,9 @@
+# ALLOW JOBS TO BE BACKGROUNDED
+set -m
+
+echo "Running quickstart"
+
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.TransactionExample
+if [ "$?" != "0" ]; then
+ exit -1
+fi
Property changes on: labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/run.sh
___________________________________________________________________
Added: svn:executable
+ *
Modified: labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/readme.txt
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/readme.txt 2011-06-30 11:29:19 UTC (rev 37178)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/readme.txt 2011-06-30 12:08:59 UTC (rev 37179)
@@ -20,6 +20,9 @@
USAGE
-----
mvn compile exec:exec
+OR
+--
+./run.[sh|bat]
EXPECTED OUTPUT
@@ -34,3 +37,8 @@
INFO: ARJUNA12170: TransactionStatusManager started on port 51393 and host 127.0.0.1 with service com.arjuna.ats.arjuna.recovery.ActionStatusService
TransactionImple < ac, BasicAction: 0:ffff7f000001:b89f:4e035407:2 status: ActionStatus.RUNNING >
null
+
+
+WHAT JUST HAPPENED?
+-------------------
+We created a transaction
Added: labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/run.bat
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/run.bat (rev 0)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/run.bat 2011-06-30 12:08:59 UTC (rev 37179)
@@ -0,0 +1,6 @@
+ at echo off
+
+echo "Running quickstart"
+
+mvn compile exec:exec
+IF %ERRORLEVEL% NEQ 0 exit -1
Property changes on: labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/run.bat
___________________________________________________________________
Added: svn:executable
+ *
Added: labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/run.sh
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/run.sh (rev 0)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/run.sh 2011-06-30 12:08:59 UTC (rev 37179)
@@ -0,0 +1,9 @@
+# ALLOW JOBS TO BE BACKGROUNDED
+set -m
+
+echo "Running quickstart"
+
+mvn compile exec:exec
+if [ "$?" != "0" ]; then
+ exit -1
+fi
Property changes on: labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/run.sh
___________________________________________________________________
Added: svn:executable
+ *
Modified: labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/readme.txt
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/readme.txt 2011-06-30 11:29:19 UTC (rev 37178)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/readme.txt 2011-06-30 12:08:59 UTC (rev 37179)
@@ -1,3 +1,17 @@
+JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
+LLC, and others contributors as indicated by the @authors tag. All rights
+reserved. See the copyright.txt in the distribution for a full listing of
+individual contributors. This copyrighted material is made available to anyone
+wishing to use, modify, copy, or redistribute it subject to the terms and
+conditions of the GNU Lesser General Public License, v. 2.1. This program
+is distributed in the hope that it will be useful, but WITHOUT A WARRANTY;
+without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE. See the GNU Lesser General Public License for more details. You
+should have received a copy of the GNU Lesser General Public License, v.2.1
+along with this distribution; if not, write to the Free Software Foundation,
+Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
There are 3 object store examples:
1. A transaction manager stores its commit decision after before deciding to commit a transaction.
@@ -2,12 +16,13 @@
This example shows how to change the store type to an (unsafe) in memory store:
- org.jboss.narayana.jta.examples.VolatileStoreExample
+ org.jboss.narayana.jta.quickstarts.VolatileStoreExample
2. This example shows how to change the store type to use the fast Hornetq journal:
- org.jboss.narayana.jta.examples.HornetqStoreExample
+ org.jboss.narayana.jta.quickstarts.HornetqStoreExample
3. This example shows how to change the store type to a file base store but in directory different from the default:
- org.jboss.narayana.jta.examples.FileStoreTest
+ org.jboss.narayana.jta.quickstarts.FileStoreTest
When running an example an exit code of zero represents success (otherwise failure together with an exception trace)
- To run an example use the maven java exec plugin. For example to run the first example:
-
- mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.VolatileStoreExample
+ To run an example use the maven java exec plugin:
+ mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.quickstarts.VolatileStoreExample
+ mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.quickstarts.HornetqStoreExample
+ mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.quickstarts.FileStoreTest
Added: labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/run.bat
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/run.bat (rev 0)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/run.bat 2011-06-30 12:08:59 UTC (rev 37179)
@@ -0,0 +1,12 @@
+ at echo off
+
+echo "Running quickstart"
+
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.quickstarts.VolatileStoreExample
+IF %ERRORLEVEL% NEQ 0 exit -1
+
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.quickstarts.HornetqStoreExample
+IF %ERRORLEVEL% NEQ 0 exit -1
+
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.quickstarts.FileStoreTest
+IF %ERRORLEVEL% NEQ 0 exit -1
Property changes on: labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/run.bat
___________________________________________________________________
Added: svn:executable
+ *
Added: labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/run.sh
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/run.sh (rev 0)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/run.sh 2011-06-30 12:08:59 UTC (rev 37179)
@@ -0,0 +1,19 @@
+# ALLOW JOBS TO BE BACKGROUNDED
+set -m
+
+echo "Running quickstart"
+
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.quickstarts.VolatileStoreExample
+if [ "$?" != "0" ]; then
+ exit -1
+fi
+
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.quickstarts.HornetqStoreExample
+if [ "$?" != "0" ]; then
+ exit -1
+fi
+
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.quickstarts.FileStoreTest
+if [ "$?" != "0" ]; then
+ exit -1
+fi
Property changes on: labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/run.sh
___________________________________________________________________
Added: svn:executable
+ *
Deleted: labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/readme
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/readme 2011-06-30 11:29:19 UTC (rev 37178)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/readme 2011-06-30 12:08:59 UTC (rev 37179)
@@ -1,39 +0,0 @@
- There are 3 recovery examples:
-
- 1. An example showing how to manually enlist (2 dummy) resources (without failures)
- org.jboss.narayana.jta.examples.recovery.BasicXAExample
-
- 2. An example demonstrating recovery from failures after prepare but before commit using Dummy XA resources:
- org.jboss.narayana.jta.examples.recovery.DummyRecovery
-
- This example needs to be run twice the first run (controled by a command line arg of -f, for fail)
- will halt the VM thus generating a "recovery record".
-
- The second run (controled by a command line arg of -r, for recover) will cause the transaction manager
- recovery system to replay the commit phase of the transaction.
-
- 3. Another example demonstrating recovery from failures but using JMS XA resources (instead of dummy ones).
- Again the first run will generate 2 messages and leave the transaction dangling in the prepared state.
- The second run will trigger the recovery system which in turn commits the two prepared JMS XA resources.
- Then the two messages are consumed.
-
- When running an example an exit code of zero represents success (otherwise failure together with an exception trace).
-
- To run an example use the maven java exec pluging. For example to run the second recovery example:
-
- mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.DummyRecovery -Dexec.args="-f"
- mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.DummyRecovery -Dexec.args="-r"
-
- And to run the JMS recovery example:
-
- mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.JmsRecovery -Dexec.args="-f"
- mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.JmsRecovery -Dexec.args="-r"
-
- On the second step of each example you will see a warning
- (HornetQException[errorCode=4 message=The connection was disconnected because of server shutdown])
- which can be ignored. It caused by the recovery subsystem not performing an orderly shutdown of JMS
- communications. This will be fixed in the next revision of JBossTS.
-
- And finally, to read the (binary) hornetq logs use the PrintData tool:
-
- mvn -e exec:java -Dexec.mainClass=org.hornetq.core.persistence.impl.journal.PrintData -Dexec.classpathScope=test -Dexec.args="target/data/hornetq/bindings target/data/hornetq/largemessages"
Copied: labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/readme.txt (from rev 37178, labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/readme)
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/readme.txt (rev 0)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/readme.txt 2011-06-30 12:08:59 UTC (rev 37179)
@@ -0,0 +1,53 @@
+JBoss, Home of Professional Open Source Copyright 2008, Red Hat Middleware
+LLC, and others contributors as indicated by the @authors tag. All rights
+reserved. See the copyright.txt in the distribution for a full listing of
+individual contributors. This copyrighted material is made available to anyone
+wishing to use, modify, copy, or redistribute it subject to the terms and
+conditions of the GNU Lesser General Public License, v. 2.1. This program
+is distributed in the hope that it will be useful, but WITHOUT A WARRANTY;
+without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+PURPOSE. See the GNU Lesser General Public License for more details. You
+should have received a copy of the GNU Lesser General Public License, v.2.1
+along with this distribution; if not, write to the Free Software Foundation,
+Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+
+ There are 3 recovery examples:
+
+ 1. An example showing how to manually enlist (2 dummy) resources (without failures)
+ org.jboss.narayana.jta.examples.recovery.BasicXAExample
+
+ 2. An example demonstrating recovery from failures after prepare but before commit using Dummy XA resources:
+ org.jboss.narayana.jta.examples.recovery.DummyRecovery
+
+ This example needs to be run twice the first run (controled by a command line arg of -f, for fail)
+ will halt the VM thus generating a "recovery record".
+
+ The second run (controled by a command line arg of -r, for recover) will cause the transaction manager
+ recovery system to replay the commit phase of the transaction.
+
+ 3. Another example demonstrating recovery from failures but using JMS XA resources (instead of dummy ones).
+ Again the first run will generate 2 messages and leave the transaction dangling in the prepared state.
+ The second run will trigger the recovery system which in turn commits the two prepared JMS XA resources.
+ Then the two messages are consumed.
+
+ When running an example an exit code of zero represents success (otherwise failure together with an exception trace).
+
+ To run an example use the maven java exec pluging. For example to run the second recovery example:
+
+ mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.DummyRecovery -Dexec.args="-f"
+ mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.DummyRecovery -Dexec.args="-r"
+
+ And to run the JMS recovery example:
+
+ mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.JmsRecovery -Dexec.args="-f"
+ mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.JmsRecovery -Dexec.args="-r"
+
+ On the second step of each example you will see a warning
+ (HornetQException[errorCode=4 message=The connection was disconnected because of server shutdown])
+ which can be ignored. It caused by the recovery subsystem not performing an orderly shutdown of JMS
+ communications. This will be fixed in the next revision of JBossTS.
+
+ And finally, to read the (binary) hornetq logs use the PrintData tool:
+
+ mvn -e exec:java -Dexec.mainClass=org.hornetq.core.persistence.impl.journal.PrintData -Dexec.classpathScope=test -Dexec.args="target/data/hornetq/bindings target/data/hornetq/largemessages"
Added: labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/run.bat
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/run.bat (rev 0)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/run.bat 2011-06-30 12:08:59 UTC (rev 37179)
@@ -0,0 +1,15 @@
+ at echo off
+
+echo "Running quickstart"
+
+rem To run an example use the maven java exec pluging. For example to run the second recovery example
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.DummyRecovery -Dexec.args="-f"
+IF %ERRORLEVEL% NEQ 0 exit -1
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.DummyRecovery -Dexec.args="-r"
+IF %ERRORLEVEL% NEQ 0 exit -1
+
+rem And to run the JMS recovery example:
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.JmsRecovery -Dexec.args="-f"
+IF %ERRORLEVEL% NEQ 0 exit -1
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.JmsRecovery -Dexec.args="-r"
+IF %ERRORLEVEL% NEQ 0 exit -1
Property changes on: labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/run.bat
___________________________________________________________________
Added: svn:executable
+ *
Added: labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/run.sh
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/run.sh (rev 0)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/run.sh 2011-06-30 12:08:59 UTC (rev 37179)
@@ -0,0 +1,24 @@
+# ALLOW JOBS TO BE BACKGROUNDED
+set -m
+
+echo "Running quickstart"
+
+# To run an example use the maven java exec pluging. For example to run the second recovery example
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.DummyRecovery -Dexec.args="-f"
+if [ "$?" != "0" ]; then
+ exit -1
+fi
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.DummyRecovery -Dexec.args="-r"
+if [ "$?" != "0" ]; then
+ exit -1
+fi
+
+# And to run the JMS recovery example:
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.JmsRecovery -Dexec.args="-f"
+if [ "$?" != "0" ]; then
+ exit -1
+fi
+mvn -e compile exec:java -Dexec.mainClass=org.jboss.narayana.jta.examples.recovery.JmsRecovery -Dexec.args="-r"
+if [ "$?" != "0" ]; then
+ exit -1
+fi
Property changes on: labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/run.sh
___________________________________________________________________
Added: svn:executable
+ *
More information about the jboss-svn-commits
mailing list