[jboss-svn-commits] JBL Code SVN: r37173 - in labs/jbosstm/trunk/ArjunaJTA: quickstarts and 5 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Jun 30 06:51:04 EDT 2011
Author: tomjenkinson
Date: 2011-06-30 06:51:04 -0400 (Thu, 30 Jun 2011)
New Revision: 37173
Added:
labs/jbosstm/trunk/ArjunaJTA/quickstarts/
labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/README
Removed:
labs/jbosstm/trunk/ArjunaJTA/examples/
Modified:
labs/jbosstm/trunk/ArjunaJTA/quickstarts/integration/pom.xml
labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/pom.xml
labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/pom.xml
labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/pom.xml
labs/jbosstm/trunk/ArjunaJTA/quickstarts/pom.xml
labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/pom.xml
Log:
JBTM-854 moved to quickstarts
Modified: labs/jbosstm/trunk/ArjunaJTA/quickstarts/integration/pom.xml
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/examples/integration/pom.xml 2011-06-29 16:27:39 UTC (rev 37170)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/integration/pom.xml 2011-06-30 10:51:04 UTC (rev 37173)
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
- <groupId>org.jboss.narayana.jta.examples</groupId>
+ <groupId>org.jboss.narayana.jta.quickstarts</groupId>
<artifactId>integration</artifactId>
<version>5.0.0.M1-SNAPSHOT</version>
<name>basic integration example</name>
Modified: labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/pom.xml
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/examples/javax_transaction/pom.xml 2011-06-29 16:27:39 UTC (rev 37170)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/javax_transaction/pom.xml 2011-06-30 10:51:04 UTC (rev 37173)
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.jboss.narayana.jta.examples</groupId>
- <artifactId>examples</artifactId>
+ <groupId>org.jboss.narayana.jta.quickstarts</groupId>
+ <artifactId>quickstarts</artifactId>
<version>5.0.0.M1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
Modified: labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/pom.xml
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/examples/maven/pom.xml 2011-06-29 16:27:39 UTC (rev 37170)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/maven/pom.xml 2011-06-30 10:51:04 UTC (rev 37173)
@@ -13,8 +13,8 @@
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
- <groupId>org.jboss.narayana.jta.examples</groupId>
- <artifactId>examples</artifactId>
+ <groupId>org.jboss.narayana.jta.quickstarts</groupId>
+ <artifactId>quickstarts</artifactId>
<version>5.0.0.M1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
Modified: labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/pom.xml
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/examples/object_store/pom.xml 2011-06-29 16:27:39 UTC (rev 37170)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/object_store/pom.xml 2011-06-30 10:51:04 UTC (rev 37173)
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.jboss.narayana.jta.examples</groupId>
- <artifactId>examples</artifactId>
+ <groupId>org.jboss.narayana.jta.quickstarts</groupId>
+ <artifactId>quickstarts</artifactId>
<version>5.0.0.M1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
Modified: labs/jbosstm/trunk/ArjunaJTA/quickstarts/pom.xml
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/examples/pom.xml 2011-06-29 16:27:39 UTC (rev 37170)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/pom.xml 2011-06-30 10:51:04 UTC (rev 37173)
@@ -1,12 +1,12 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
- <groupId>org.jboss.narayana.jta.examples</groupId>
- <artifactId>examples</artifactId>
+ <groupId>org.jboss.narayana.jta.quickstarts</groupId>
+ <artifactId>quickstarts</artifactId>
<version>5.0.0.M1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>JBoss JTA Examples</name>
- <description>All examples of JBoss JTA</description>
+ <description>All quickstarts of JBoss JTA</description>
<repositories>
<repository>
<id>jboss-public-repository-group</id>
Added: labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/README
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/README (rev 0)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/README 2011-06-30 10:51:04 UTC (rev 37173)
@@ -0,0 +1,35 @@
+ There are 3 recovery examples:
+ 1. An example showing how to manually enlist (2 dummy) resources (without failures)
+ org.jboss.narayana.examples.recovery.BasicXAExample
+ 2. An example demonstrating recovery from failures after prepare but before commit using Dummy XA resources:
+ org.jboss.narayana.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 (ontroled 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.
+
+ 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.examples.recovery.DummyRecovery -Dexec.classpathScope=test -Dexec.args="-r"
+ mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.examples.recovery.DummyRecovery -Dexec.classpathScope=test -Dexec.args="-f"
+
+ And to run the JMS recovery example:
+
+ mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.examples.recovery.JmsRecovery -Dexec.classpathScope=test -Dexec.args="-r"
+ mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.examples.recovery.JmsRecovery -Dexec.classpathScope=test -Dexec.args="-f"
+
+ 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"
+
+
Modified: labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/pom.xml
===================================================================
--- labs/jbosstm/trunk/ArjunaJTA/examples/recovery/pom.xml 2011-06-29 16:27:39 UTC (rev 37170)
+++ labs/jbosstm/trunk/ArjunaJTA/quickstarts/recovery/pom.xml 2011-06-30 10:51:04 UTC (rev 37173)
@@ -1,46 +1,12 @@
<?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
- <groupId>org.jboss.narayana.jta.examples</groupId>
- <artifactId>examples</artifactId>
+ <groupId>org.jboss.narayana.jta.quickstarts</groupId>
+ <artifactId>quickstarts</artifactId>
<version>5.0.0.M1-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
- <description>
- There are 3 recovery examples:
- 1. An example showing how to manually enlist (2 dummy) resources (without failures)
- org.jboss.narayana.examples.recovery.BasicXAExample
- 2. An example demonstrating recovery from failures after prepare but before commit using Dummy XA resources:
- org.jboss.narayana.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 (ontroled 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.
-
- 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.examples.recovery.DummyRecovery -Dexec.classpathScope=test -Dexec.args="-r"
- mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.examples.recovery.DummyRecovery -Dexec.classpathScope=test -Dexec.args="-f"
-
- And to run the JMS recovery example:
-
- mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.examples.recovery.JmsRecovery -Dexec.classpathScope=test -Dexec.args="-r"
- mvn -e exec:java -Dexec.mainClass=org.jboss.narayana.examples.recovery.JmsRecovery -Dexec.classpathScope=test -Dexec.args="-f"
-
- 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"
-
+ <description>Recovery example
</description>
<modelVersion>4.0.0</modelVersion>
<artifactId>recovery</artifactId>
More information about the jboss-svn-commits
mailing list