[jboss-cvs] JBossAS SVN: r61682 - trunk/ejb3/src/main/org/jboss/ejb3/session.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Mar 25 14:24:28 EDT 2007


Author: bstansberry at jboss.com
Date: 2007-03-25 14:24:28 -0400 (Sun, 25 Mar 2007)
New Revision: 61682

Modified:
   trunk/ejb3/src/main/org/jboss/ejb3/session/BaseSessionProxyFactory.java
Log:
[EJBTHREE-881] Clustered proxy factories get the partition name from EJBContainer

Modified: trunk/ejb3/src/main/org/jboss/ejb3/session/BaseSessionProxyFactory.java
===================================================================
--- trunk/ejb3/src/main/org/jboss/ejb3/session/BaseSessionProxyFactory.java	2007-03-25 18:23:44 UTC (rev 61681)
+++ trunk/ejb3/src/main/org/jboss/ejb3/session/BaseSessionProxyFactory.java	2007-03-25 18:24:28 UTC (rev 61682)
@@ -33,7 +33,6 @@
 import org.jboss.ejb3.ProxyFactory;
 import org.jboss.ejb3.ProxyFactoryHelper;
 import org.jboss.logging.Logger;
-import org.jboss.util.StringPropertyReplacer;
 import org.jboss.ejb3.proxy.EJBMetaDataImpl;
 import org.jboss.ejb3.proxy.handle.HomeHandleImpl;
 
@@ -107,38 +106,4 @@
       return metadata;
    }
    
-   /**
-    * Performs a system property substitution if the given value conforms to the
-    * "${property.name}" or "${property.name:defaultvalue}" patterns; otherwise just 
-    * returns <code>value</value>.
-    *
-    * TODO Put this in a utility somewhere; this is just the common parent of
-    * the places that currently use it.
-    * 
-    * @param value a String that may represent a system property.
-    * 
-    * @return  the value of the given system property, or the provided default value
-    *          if there was no system property matching the given string, or 
-    *          <code>value</code> itself if it didn't encode a system property name.
-    */
-   protected String substituteSystemProperty(String value)
-   {
-      try
-      {
-         String replacedValue = StringPropertyReplacer.replaceProperties(value);
-         if (value != replacedValue)
-         {            
-            log.debug("Replacing @Clustered partition attribute " + value + " with " + replacedValue);
-            value = replacedValue;
-         }
-      }
-      catch (Exception e)
-      {
-         log.warn("Unable to replace @Clustered partition attribute " + value + 
-                  ". Caused by " + e.getClass() + " " + e.getMessage());         
-      }
-      
-      return value;
-   }
-
 }




More information about the jboss-cvs-commits mailing list