james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e...@apache.org
Subject svn commit: r1054616 - /james/server/trunk/container-spring/src/main/java/org/apache/james/container/spring/Main.java
Date Mon, 03 Jan 2011 13:52:23 GMT
Author: eric
Date: Mon Jan  3 13:52:23 2011
New Revision: 1054616

URL: http://svn.apache.org/viewvc?rev=1054616&view=rev
Log:
Log server startup time (JAMES-1172)

Modified:
    james/server/trunk/container-spring/src/main/java/org/apache/james/container/spring/Main.java

Modified: james/server/trunk/container-spring/src/main/java/org/apache/james/container/spring/Main.java
URL: http://svn.apache.org/viewvc/james/server/trunk/container-spring/src/main/java/org/apache/james/container/spring/Main.java?rev=1054616&r1=1054615&r2=1054616&view=diff
==============================================================================
--- james/server/trunk/container-spring/src/main/java/org/apache/james/container/spring/Main.java
(original)
+++ james/server/trunk/container-spring/src/main/java/org/apache/james/container/spring/Main.java
Mon Jan  3 13:52:23 2011
@@ -19,17 +19,30 @@
 package org.apache.james.container.spring;
 
 import java.io.IOException;
+import java.util.Calendar;
 
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 import org.apache.james.container.spring.context.JamesServerApplicationContext;
 
 /**
- * Bootstraps James using a Spring container
+ * Bootstraps James using a Spring container.
  */
 public class Main {
 
+    private static Log log = LogFactory.getLog(Main.class.getName());
+
     public static void main(String[] args) throws IOException {
+        
+        long start = Calendar.getInstance().getTimeInMillis();
+        
         final JamesServerApplicationContext context = new JamesServerApplicationContext(new
String[] { "context/james-server-context.xml" });
         context.registerShutdownHook();
+        
+        long end = Calendar.getInstance().getTimeInMillis();
+
+        log.info("Apache James Server is successfully started in " + (end-start) + " milliseconds.");
+        
     }
 
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message