tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1021979 - in /openejb/branches/openejb-3.1.x: container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/ container/openejb-core/src/main/resources/org/apache/openejb/assembler/classic/ server/openejb-client/src/main/java/or...
Date Wed, 13 Oct 2010 03:13:49 GMT
Author: dblevins
Date: Wed Oct 13 03:13:49 2010
New Revision: 1021979

URL: http://svn.apache.org/viewvc?rev=1021979&view=rev
Log:
Beefed up logging slightly

Modified:
    openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
    openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/org/apache/openejb/assembler/classic/Messages.properties
    openejb/branches/openejb-3.1.x/server/openejb-client/src/main/java/org/apache/openejb/client/ConnectionManager.java

Modified: openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java?rev=1021979&r1=1021978&r2=1021979&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
(original)
+++ openejb/branches/openejb-3.1.x/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
Wed Oct 13 03:13:49 2010
@@ -598,6 +598,11 @@ public class Assembler extends Assembler
                         Container container = deployment.getContainer();
                         container.deploy(deployment);
                         logger.info("createApplication.createdEjb", deployment.getDeploymentID(),
deployment.getEjbName(), container.getContainerID());
+                        if (logger.isDebugEnabled()) {
+                            for (Map.Entry<Object, Object> entry : deployment.getProperties().entrySet())
{
+                                logger.info("createApplication.createdEjb.property", deployment.getEjbName(),
entry.getKey(), entry.getValue());
+                            }
+                        }
                     } catch (Throwable t) {
                         throw new OpenEJBException("Error deploying '"+deployment.getEjbName()+"'.
 Exception: "+t.getClass()+": "+t.getMessage(), t);
                     }

Modified: openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/org/apache/openejb/assembler/classic/Messages.properties
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/org/apache/openejb/assembler/classic/Messages.properties?rev=1021979&r1=1021978&r2=1021979&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/org/apache/openejb/assembler/classic/Messages.properties
(original)
+++ openejb/branches/openejb-3.1.x/container/openejb-core/src/main/resources/org/apache/openejb/assembler/classic/Messages.properties
Wed Oct 13 03:13:49 2010
@@ -59,6 +59,9 @@ createApplication.invalidClass = Applica
 # info("createApplication.createdEjb", beanInfo.ejbDeploymentId, beanInfo.ejbName, beanInfo.containerId);
 createApplication.createdEjb = Created Ejb(deployment-id={0}, ejb-name={1}, container={2})
 
+# info("createApplication.createdEjb.property", deployment.getEjbName(), entry.getKey(),
entry.getValue());
+createApplication.createdEjb.property = {0} property: {1} = {2}
+
 # info("createApplication.createLocalClient", clientClassName, clientInfo.moduleId);
 createApplication.createLocalClient = LocalClient(class={0}, module={1}) 
 

Modified: openejb/branches/openejb-3.1.x/server/openejb-client/src/main/java/org/apache/openejb/client/ConnectionManager.java
URL: http://svn.apache.org/viewvc/openejb/branches/openejb-3.1.x/server/openejb-client/src/main/java/org/apache/openejb/client/ConnectionManager.java?rev=1021979&r1=1021978&r2=1021979&view=diff
==============================================================================
--- openejb/branches/openejb-3.1.x/server/openejb-client/src/main/java/org/apache/openejb/client/ConnectionManager.java
(original)
+++ openejb/branches/openejb-3.1.x/server/openejb-client/src/main/java/org/apache/openejb/client/ConnectionManager.java
Wed Oct 13 03:13:49 2010
@@ -19,9 +19,12 @@ package org.apache.openejb.client;
 import java.io.IOException;
 import java.net.URI;
 import java.util.Properties;
+import java.util.logging.Logger;
 
 public class ConnectionManager {
 
+    private static final Logger logger = Logger.getLogger("OpenEJB.client");
+    
     private static Registry<ConnectionFactory> factories = Registry.create(ConnectionFactory.class);
     private static Registry<ConnectionStrategy> strategies = Registry.create(ConnectionStrategy.class);
 
@@ -61,7 +64,7 @@ public class ConnectionManager {
 
         if (strategy == null) throw new IOException("Unsupported ConnectionStrategy  \""
+ name + "\"");
 
-
+        logger.fine("connect: strategy=" + name + ", uri=" + server.getLocation() + ", strategy-impl="
+ strategy.getClass().getName());
         return strategy.connect(cluster, server);
     }
 
@@ -72,6 +75,7 @@ public class ConnectionManager {
 
         if (factory == null) throw new IOException("Unsupported ConnectionFactory URI scheme
 \"" + scheme + "\"");
 
+        logger.fine("connect: scheme=" + scheme + ", uri=" + uri + ", factory-impl=" + factory.getClass().getName());
         return factory.getConnection(uri);
     }
 



Mime
View raw message