svn commit: r1955 - in development/laboratory/planet: components/processing/controller/src/main/net/dpml/processing/controller facilities/transactions/facility/etc facilities/transactions/facility/src/main/net/dpml/tx

niclas at netcompartner.com niclas at netcompartner.com
Sat Mar 5 05:29:39 EST 2005


Author: niclas
Date: Sat Mar  5 11:29:39 2005
New Revision: 1955

Added:
   development/laboratory/planet/facilities/transactions/facility/etc/
   development/laboratory/planet/facilities/transactions/facility/etc/kernel.xml   (contents, props changed)
Modified:
   development/laboratory/planet/components/processing/controller/src/main/net/dpml/processing/controller/NestedController.java
   development/laboratory/planet/facilities/transactions/facility/src/main/net/dpml/tx/DefaultTransactionFacility.java
Log:
Small changes that has been hanging around, needed before moving to new Svn server.

Modified: development/laboratory/planet/components/processing/controller/src/main/net/dpml/processing/controller/NestedController.java
==============================================================================
--- development/laboratory/planet/components/processing/controller/src/main/net/dpml/processing/controller/NestedController.java	(original)
+++ development/laboratory/planet/components/processing/controller/src/main/net/dpml/processing/controller/NestedController.java	Sat Mar  5 11:29:39 2005
@@ -83,8 +83,9 @@
  * </p>
  * <h2>Startup</h2>
  * <p>
- * The controller will start processing the ProcessActivity that has been
- * declared for the <code>initial-activity</code> dependency in the block.
+ * The controller will start processing the <ocde>ProcessActivity</code> that
+ * has been declared for the <code>initial-activity</code> dependency in the
+ * block.
  * </p>
  * <h2>Exit</h2>
  * Whenever an outcome is defined to continue with the

Added: development/laboratory/planet/facilities/transactions/facility/etc/kernel.xml
==============================================================================
--- (empty file)
+++ development/laboratory/planet/facilities/transactions/facility/etc/kernel.xml	Sat Mar  5 11:29:39 2005
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<kernel>
+
+  <container>
+    <container name="system" >
+      <container name="transactions" >
+        <component name="tx-facility" class="net.dpml.tx.DefaultTransactionFacility" />
+      </container>
+    </container>
+  </container>
+
+</kernel>

Modified: development/laboratory/planet/facilities/transactions/facility/src/main/net/dpml/tx/DefaultTransactionFacility.java
==============================================================================
--- development/laboratory/planet/facilities/transactions/facility/src/main/net/dpml/tx/DefaultTransactionFacility.java	(original)
+++ development/laboratory/planet/facilities/transactions/facility/src/main/net/dpml/tx/DefaultTransactionFacility.java	Sat Mar  5 11:29:39 2005
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
+
  package net.dpml.tx;
 
 import javax.naming.NamingException;
@@ -29,36 +29,37 @@
 import net.dpml.parameters.Parameters;
 import org.objectweb.jotm.Jotm;
 import org.objectweb.transaction.jta.TMService;
+import org.objectweb.transaction.jta.TransactionManager;
 
 /** The DefaultTransactionFacility uses JOTM as the underlying implementation
  *  of the Java Transaction API.
- * 
+ *
  * @metro.component name="transaction-facility" lifestyle="singleton"
  * @metro.service type="net.dpml.tx.TransactionFacility"
  */
 public class DefaultTransactionFacility
     implements CompositionListener, TransactionFacility, Disposable
 {
-    /** The Logger used in the component. It is named "transactions". */ 
+    /** The Logger used in the component. It is named "transactions". */
     private Logger              m_logger;
-    
+
     /** The JOTM instance that is the underlying implementation of JTA driving
      *  this facility.
      */
     private TMService           m_TmService;
-    
+
     /** The ContainmentModel of the container. */
     private ContainmentModel    m_model;
-     
+
     /**
      * @param ctx the context containing the ContainmentModel.
      * @param logger the logger to use for this component.
      * @param params the parameters to configure this component with.
-     * 
+     *
      * @throws ContextException can only happen for broken containers.
-     * @throws NamingException if the parameter "bound" is true, and the 
+     * @throws NamingException if the parameter "bound" is true, and the
      *         underlying TransactionManager can not connect to the JNDI.
-     * 
+     *
      * @metro.logger name="transactions"
      * @metro.entry key="urn:composition:containment.model"
      *              type="net.dpml.composition.model.ContainmentModel"
@@ -73,7 +74,7 @@
         m_logger = logger;
         m_model.addCompositionListener( this );
     }
-    
+
     /** Called by the container to instruct the component to clean up after itself.
      * This method should not be called by anything else.
      */
@@ -81,7 +82,7 @@
     {
         m_model.removeCompositionListener( this );
     }
-    
+
     /** Called by the composition model when there is an addition in the composition.
      * Not called by anything except the container.
      * @param event the event sent by the composition model.
@@ -93,7 +94,7 @@
         // TODO if the add model is a XAResource, then we need to deal with it.
         //      somehow need to associate it with the transaction manager.
     }
-    
+
     /** Called by the composition model when there is removal in the composition.
      * Not called by anything except the container.
      * @param event the event sent by the composition model.



More information about the notify-dpml mailing list