geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r830385 - /geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/SingletonContainerGBean.java
Date Tue, 27 Oct 2009 22:54:21 GMT
Author: dblevins
Date: Tue Oct 27 22:54:21 2009
New Revision: 830385

URL: http://svn.apache.org/viewvc?rev=830385&view=rev
Log:
tweak to ensure container has a TimeUnit for the timeout

Modified:
    geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/SingletonContainerGBean.java

Modified: geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/SingletonContainerGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/SingletonContainerGBean.java?rev=830385&r1=830384&r2=830385&view=diff
==============================================================================
--- geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/SingletonContainerGBean.java
(original)
+++ geronimo/server/branches/2.2/plugins/openejb/geronimo-openejb/src/main/java/org/apache/geronimo/openejb/SingletonContainerGBean.java
Tue Oct 27 22:54:21 2009
@@ -23,8 +23,10 @@
 import org.apache.geronimo.gbean.annotation.SpecialAttributeType;
 import org.apache.geronimo.gbean.AbstractName;
 import org.apache.openejb.assembler.classic.SingletonSessionContainerInfo;
+import org.apache.openejb.util.Duration;
 
 import java.util.Properties;
+import java.util.concurrent.TimeUnit;
 
 /**
  * @version $Rev$ $Date$
@@ -41,7 +43,9 @@
             @ParamAttribute(name = "accessTimeout") long accessTimeout,
             @ParamAttribute(name = "properties") Properties properties) {
         super(abstractName, SingletonSessionContainerInfo.class, openEjbSystem, provider,
"SINGLETON", properties);
-        set("AccessTimeout", Long.toString(accessTimeout));
+
+        Duration duration = new Duration(accessTimeout, TimeUnit.SECONDS);
+        set("AccessTimeout", duration.toString());
         this.accessTimeout = accessTimeout;
     }
 



Mime
View raw message