geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: rev 46259 - in geronimo/trunk/modules: client-builder/src/java/org/apache/geronimo/client/builder naming/src/java/org/apache/geronimo/naming/java
Date Fri, 17 Sep 2004 16:45:48 GMT
Author: dain
Date: Fri Sep 17 09:45:46 2004
New Revision: 46259

Modified:
   geronimo/trunk/modules/client-builder/src/java/org/apache/geronimo/client/builder/AppClientModuleBuilder.java
   geronimo/trunk/modules/naming/src/java/org/apache/geronimo/naming/java/ComponentContextBuilder.java
Log:
Temporarily remove UserTransaction from app client


Modified: geronimo/trunk/modules/client-builder/src/java/org/apache/geronimo/client/builder/AppClientModuleBuilder.java
==============================================================================
--- geronimo/trunk/modules/client-builder/src/java/org/apache/geronimo/client/builder/AppClientModuleBuilder.java
(original)
+++ geronimo/trunk/modules/client-builder/src/java/org/apache/geronimo/client/builder/AppClientModuleBuilder.java
Fri Sep 17 09:45:46 2004
@@ -17,7 +17,6 @@
 package org.apache.geronimo.client.builder;
 
 import java.io.BufferedOutputStream;
-import java.io.ByteArrayOutputStream;
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
@@ -33,17 +32,17 @@
 import java.util.Iterator;
 import java.util.Map;
 import java.util.Properties;
+import java.util.jar.Attributes;
 import java.util.jar.JarEntry;
 import java.util.jar.JarFile;
 import java.util.jar.JarInputStream;
 import java.util.jar.JarOutputStream;
 import java.util.jar.Manifest;
-import java.util.jar.Attributes;
 import java.util.zip.ZipEntry;
 import javax.management.MalformedObjectNameException;
 import javax.management.ObjectName;
-import javax.transaction.UserTransaction;
 
+import org.apache.geronimo.client.AppClientContainer;
 import org.apache.geronimo.common.xml.XmlBeansUtil;
 import org.apache.geronimo.deployment.DeploymentContext;
 import org.apache.geronimo.deployment.DeploymentException;
@@ -63,7 +62,7 @@
 import org.apache.geronimo.naming.deployment.ENCConfigBuilder;
 import org.apache.geronimo.naming.java.ReadOnlyContext;
 import org.apache.geronimo.schema.SchemaConversionUtils;
-import org.apache.geronimo.transaction.UserTransactionImpl;
+import org.apache.geronimo.system.main.CommandLineManifest;
 import org.apache.geronimo.xbeans.geronimo.client.GerApplicationClientDocument;
 import org.apache.geronimo.xbeans.geronimo.client.GerApplicationClientType;
 import org.apache.geronimo.xbeans.geronimo.client.GerDependencyType;
@@ -72,8 +71,6 @@
 import org.apache.geronimo.xbeans.j2ee.ApplicationClientDocument;
 import org.apache.geronimo.xbeans.j2ee.ApplicationClientType;
 import org.apache.geronimo.xbeans.j2ee.EjbLocalRefType;
-import org.apache.geronimo.system.main.CommandLineManifest;
-import org.apache.geronimo.client.AppClientContainer;
 import org.apache.xmlbeans.SchemaTypeLoader;
 import org.apache.xmlbeans.XmlBeans;
 import org.apache.xmlbeans.XmlException;
@@ -399,8 +396,7 @@
                 }
             }
 
-            UserTransaction userTransaction = new UserTransactionImpl();
-            ReadOnlyContext componentContext = buildComponentContext(earContext, appClientModule,
appClient, geronimoAppClient, userTransaction, appClientClassLoader);
+            ReadOnlyContext componentContext = buildComponentContext(earContext, appClientModule,
appClient, geronimoAppClient, appClientClassLoader);
             GBeanMBean appClienContainerGBean = new GBeanMBean(AppClientContainer.GBEAN_INFO,
cl);
             try {
                 appClientModuleGBean.setAttribute("componentContext", componentContext);
@@ -437,7 +433,7 @@
         return applicationClientDoc;
     }
 
-    private ReadOnlyContext buildComponentContext(EARContext earContext, AppClientModule
appClientModuel, ApplicationClientType appClient, GerApplicationClientType geronimoAppClient,
UserTransaction userTransaction, ClassLoader cl) throws DeploymentException {
+    private ReadOnlyContext buildComponentContext(EARContext earContext, AppClientModule
appClientModuel, ApplicationClientType appClient, GerApplicationClientType geronimoAppClient,
ClassLoader cl) throws DeploymentException {
         Map ejbRefMap = mapRefs(geronimoAppClient.getEjbRefArray());
         Map resourceRefMap = mapRefs(geronimoAppClient.getResourceRefArray());
         Map resourceEnvRefMap = mapRefs(geronimoAppClient.getResourceEnvRefArray());
@@ -446,7 +442,7 @@
 
         return ENCConfigBuilder.buildComponentContext(earContext,
                 uri,
-                userTransaction,
+                null,
                 appClient.getEnvEntryArray(),
                 appClient.getEjbRefArray(), ejbRefMap,
                 new EjbLocalRefType[0], Collections.EMPTY_MAP,

Modified: geronimo/trunk/modules/naming/src/java/org/apache/geronimo/naming/java/ComponentContextBuilder.java
==============================================================================
--- geronimo/trunk/modules/naming/src/java/org/apache/geronimo/naming/java/ComponentContextBuilder.java
(original)
+++ geronimo/trunk/modules/naming/src/java/org/apache/geronimo/naming/java/ComponentContextBuilder.java
Fri Sep 17 09:45:46 2004
@@ -21,7 +21,6 @@
 import java.net.URL;
 import javax.management.MalformedObjectNameException;
 import javax.naming.NamingException;
-import javax.naming.Reference;
 import javax.transaction.UserTransaction;
 
 import org.apache.geronimo.naming.deployment.RefAdapter;

Mime
View raw message