User: mnf999  
  Date: 01/08/02 19:49:16

  Modified:    src/main/org/jboss/metadata ConfigurationMetaData.java
  Log:
  Added the lockManager
  
  Revision  Changes    Path
  1.17      +21 -5     jboss/src/main/org/jboss/metadata/ConfigurationMetaData.java
  
  Index: ConfigurationMetaData.java
  ===================================================================
  RCS file: 
/cvsroot/jboss/jboss/src/main/org/jboss/metadata/ConfigurationMetaData.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ConfigurationMetaData.java        2001/06/24 01:07:10     1.16
  +++ ConfigurationMetaData.java        2001/08/03 02:49:16     1.17
  @@ -13,7 +13,14 @@
   /** The configuration information for an EJB container.
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Sebastien Alborini</a>
    *   @author <a href="mailto:[EMAIL PROTECTED]";>Scott Stark</a>
  - *   @version $Revision: 1.16 $
  + *   @version $Revision: 1.17 $
  + *
  + *  <p><b>Revisions:</b><br>
  + *  <p><b>2001/08/02: marcf</b>
  + *  <ol>
  + *   <li>Added locking policy as optional tag in jboss.xml 
  + *  </ol>
  + *
    */
   public class ConfigurationMetaData extends MetaData {
   
  @@ -44,6 +51,10 @@
       private String instanceCache;
       private String persistenceManager;
       private String transactionManager;
  +      // This is to provide backward compatibility with 2.4 series jboss.xml
  +      // but it should come from standardjboss alone 
  +      // marcf:FIXME deprecate the "hardcoded string"
  +      private String lockClass = 
"org.jboss.ejb.plugins.lock.SimplePessimisticEJBLock";
       private byte commitOption;
       private long optionDRefreshRate = 30000;
       private boolean callLogging;
  @@ -84,8 +95,10 @@
   
        public String getTransactionManager() { return transactionManager; }
   
  -        public Element getContainerInvokerConf() { return containerInvokerConf; }
  -        public Element getContainerPoolConf() { return containerPoolConf; }
  +     public String getLockClass() {return lockClass;} 
  +     
  +     public Element getContainerInvokerConf() { return containerInvokerConf; }
  +     public Element getContainerPoolConf() { return containerPoolConf; }
        public Element getContainerCacheConf() { return containerCacheConf; }
        public Element getContainerInterceptorsConf() { return 
containerInterceptorsConf; }
   
  @@ -93,7 +106,7 @@
   
        public byte getCommitOption() { return commitOption; }
   
  -        public long getOptionDRefreshRate() { return optionDRefreshRate; }
  +     public long getOptionDRefreshRate() { return optionDRefreshRate; }
   
        public boolean getReadOnlyGetMethods() { return readOnlyGetMethods; }
   
  @@ -123,7 +136,10 @@
           // set the transaction manager
           transactionManager = getElementContent(getOptionalChild(element, 
"transaction-manager"), transactionManager);
   
  -        // set the security domain
  +               // set the lock class
  +        lockClass = getElementContent(getOptionalChild(element, "locking-policy"), 
lockClass);
  +              
  +               // set the security domain
           securityDomain = getElementContent(getOptionalChild(element, 
"security-domain"), securityDomain);
           // set the authentication module
           authenticationModule = getElementContent(getOptionalChild(element, 
"authentication-module"), authenticationModule);
  
  
  

_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to