maguro      2005/03/26 21:04:40

  Modified:    modules/core/src/java/org/openejb/corba Adapter.java
                        AdapterEntity.java AdapterStateful.java
                        AdapterStateless.java CORBABean.java CSSBean.java
                        SunNameService.java
  Added:       modules/core/src/java/org/openejb/corba ClientContext.java
                        ClientContextHolder.java ClientContextManager.java
                        MinorCodes.java
  Log:

  Updated to use the default Sun ORB.
  
  Revision  Changes    Path
  1.8       +5 -4      
openejb/modules/core/src/java/org/openejb/corba/Adapter.java
  
  Index: Adapter.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/corba/Adapter.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Adapter.java      15 Mar 2005 05:27:03 -0000      1.7
  +++ Adapter.java      27 Mar 2005 02:04:40 -0000      1.8
  @@ -84,7 +84,7 @@
       private final byte[] home_id;
       private final org.omg.CORBA.Object homeReference;
   
  -    protected Adapter(EJBContainer container, ORB orb, POA parentPOA, 
TieLoader tieLoader) throws CORBAException {
  +    protected Adapter(EJBContainer container, ORB orb, POA parentPOA, 
TieLoader tieLoader, Policy securityPolicy) throws CORBAException {
           this.container = container;
           this.parentPOA = parentPOA;
           this.tieLoader = tieLoader;
  @@ -95,8 +95,9 @@
   
           try {
               Policy[] policies = new Policy[]{
  +                securityPolicy,
                   
orb.create_policy(ServerTransactionPolicyFactory.POLICY_TYPE, any),
  -                
parentPOA.create_lifespan_policy(LifespanPolicyValue.TRANSIENT),
  +//                
parentPOA.create_lifespan_policy(LifespanPolicyValue.TRANSIENT),
                   
parentPOA.create_request_processing_policy(RequestProcessingPolicyValue.USE_ACTIVE_OBJECT_MAP_ONLY),
                   
parentPOA.create_servant_retention_policy(ServantRetentionPolicyValue.RETAIN),
                   
parentPOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID),
  
  
  
  1.8       +4 -4      
openejb/modules/core/src/java/org/openejb/corba/AdapterEntity.java
  
  Index: AdapterEntity.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/corba/AdapterEntity.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AdapterEntity.java        15 Mar 2005 05:27:03 -0000      1.7
  +++ AdapterEntity.java        27 Mar 2005 02:04:40 -0000      1.8
  @@ -87,7 +87,7 @@
       private final AdapterProxyFactory factory;
   
       public AdapterEntity(EJBContainer container, ORB orb, POA parentPOA, 
TieLoader tieLoader, Policy securityPolicy) throws CORBAException {
  -        super(container, orb, parentPOA, tieLoader);
  +        super(container, orb, parentPOA, tieLoader, securityPolicy);
   
           Any any = orb.create_any();
           any.insert_Value(container.getRemoteTxPolicyConfig());
  @@ -96,7 +96,7 @@
               Policy[] policies = new Policy[]{
                   securityPolicy,
                   
orb.create_policy(ServerTransactionPolicyFactory.POLICY_TYPE, any),
  -                
homePOA.create_lifespan_policy(LifespanPolicyValue.PERSISTENT),
  +//                
homePOA.create_lifespan_policy(LifespanPolicyValue.PERSISTENT),
                   
homePOA.create_request_processing_policy(RequestProcessingPolicyValue.USE_SERVANT_MANAGER),
                   
homePOA.create_servant_retention_policy(ServantRetentionPolicyValue.NON_RETAIN),
                   
homePOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID),
  
  
  
  1.8       +3 -3      
openejb/modules/core/src/java/org/openejb/corba/AdapterStateful.java
  
  Index: AdapterStateful.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/corba/AdapterStateful.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AdapterStateful.java      15 Mar 2005 05:27:03 -0000      1.7
  +++ AdapterStateful.java      27 Mar 2005 02:04:40 -0000      1.8
  @@ -87,7 +87,7 @@
       private final AdapterProxyFactory factory;
   
       public AdapterStateful(EJBContainer container, ORB orb, POA parentPOA, 
TieLoader tieLoader, Policy securityPolicy) throws CORBAException {
  -        super(container, orb, parentPOA, tieLoader);
  +        super(container, orb, parentPOA, tieLoader, securityPolicy);
   
           Any any = orb.create_any();
           any.insert_Value(container.getRemoteTxPolicyConfig());
  
  
  
  1.8       +4 -4      
openejb/modules/core/src/java/org/openejb/corba/AdapterStateless.java
  
  Index: AdapterStateless.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/corba/AdapterStateless.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- AdapterStateless.java     15 Mar 2005 05:27:03 -0000      1.7
  +++ AdapterStateless.java     27 Mar 2005 02:04:40 -0000      1.8
  @@ -76,7 +76,7 @@
       private final org.omg.CORBA.Object objectReference;
   
       public AdapterStateless(EJBContainer container, ORB orb, POA parentPOA, 
TieLoader tieLoader, Policy securityPolicy) throws CORBAException {
  -        super(container, orb, parentPOA, tieLoader);
  +        super(container, orb, parentPOA, tieLoader, securityPolicy);
           Any any = orb.create_any();
           any.insert_Value(container.getRemoteTxPolicyConfig());
   
  @@ -84,7 +84,7 @@
               Policy[] policies = new Policy[]{
                   securityPolicy,
                   
orb.create_policy(ServerTransactionPolicyFactory.POLICY_TYPE, any),
  -                
homePOA.create_lifespan_policy(LifespanPolicyValue.TRANSIENT),
  +//                
homePOA.create_lifespan_policy(LifespanPolicyValue.TRANSIENT),
                   
homePOA.create_request_processing_policy(RequestProcessingPolicyValue.USE_ACTIVE_OBJECT_MAP_ONLY),
                   
homePOA.create_servant_retention_policy(ServantRetentionPolicyValue.RETAIN),
                   
homePOA.create_id_assignment_policy(IdAssignmentPolicyValue.USER_ID),
  
  
  
  1.14      +9 -7      
openejb/modules/core/src/java/org/openejb/corba/CORBABean.java
  
  Index: CORBABean.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/corba/CORBABean.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- CORBABean.java    23 Mar 2005 08:23:16 -0000      1.13
  +++ CORBABean.java    27 Mar 2005 02:04:40 -0000      1.14
  @@ -62,6 +62,7 @@
   
   import org.openejb.corba.security.config.ConfigAdapter;
   import org.openejb.corba.security.config.tss.TSSConfig;
  +import org.openejb.corba.util.Util;
   
   
   /**
  @@ -86,7 +87,7 @@
           this.configAdapter = null;
       }
   
  -    public CORBABean(String configAdapter, ClassLoader classLoader, Executor 
threadPool, OpenORBNameBean namingService, SecurityService securityService) 
throws ClassNotFoundException, IllegalAccessException, InstantiationException {
  +    public CORBABean(String configAdapter, ClassLoader classLoader, Executor 
threadPool, SecurityService securityService, SunNameService nameService) throws 
ClassNotFoundException, IllegalAccessException, InstantiationException {
           this.classLoader = classLoader;
           this.threadPool = threadPool;
           if (configAdapter != null) {
  @@ -94,8 +95,8 @@
           } else {
               this.configAdapter = null;
           }
  -        //naming service included to force start order.
           //security service included to force start order.
  +        //name service included to force start order.
       }
   
       public TSSConfig getTssConfig() {
  @@ -146,6 +147,8 @@
                   orb = ORB.init((String[]) args.toArray(new 
String[args.size()]), props);
               }
   
  +            Util.setORB(orb);
  +
               org.omg.CORBA.Object obj = 
orb.resolve_initial_references("RootPOA");
   
               rootPOA = POAHelper.narrow(obj);
  @@ -163,7 +166,6 @@
       }
   
       public void doStop() throws Exception {
  -        orb.shutdown(true);
           orb.destroy();
           log.info("Stopped CORBABean");
       }
  @@ -187,10 +189,10 @@
   
           infoFactory.addAttribute("classLoader", ClassLoader.class, false);
           infoFactory.addReference("ThreadPool", Executor.class, 
NameFactory.GERONIMO_SERVICE);
  -        infoFactory.addReference("NamingService", OpenORBNameBean.class, 
NameFactory.CORBA_SERVICE);
           infoFactory.addReference("SecurityService", SecurityService.class, 
NameFactory.GERONIMO_SERVICE);
  +        infoFactory.addReference("NameService", SunNameService.class, 
NameFactory.CORBA_SERVICE);
   
  -        infoFactory.setConstructor(new String[]{"configAdapter", 
"classLoader", "ThreadPool", "NamingService", "SecurityService"});
  +        infoFactory.setConstructor(new String[]{"configAdapter", 
"classLoader", "ThreadPool", "SecurityService", "NameService"});
   
           GBEAN_INFO = infoFactory.getBeanInfo();
       }
  
  
  
  1.7       +17 -20    
openejb/modules/core/src/java/org/openejb/corba/CSSBean.java
  
  Index: CSSBean.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/corba/CSSBean.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- CSSBean.java      20 Mar 2005 23:07:39 -0000      1.6
  +++ CSSBean.java      27 Mar 2005 02:04:40 -0000      1.7
  @@ -54,13 +54,13 @@
   import org.omg.CORBA.Any;
   import org.omg.CORBA.ORB;
   import org.omg.CORBA.Policy;
  -import org.omg.CORBA.PolicyManager;
  -import org.omg.CORBA.PolicyManagerHelper;
   import org.omg.CORBA.SetOverrideType;
   import org.omg.CORBA.UserException;
  +import org.omg.CORBA.portable.ObjectImpl;
   import org.omg.CosNaming.NameComponent;
   import org.omg.CosNaming.NamingContextExt;
   import org.omg.CosNaming.NamingContextExtHelper;
  +import org.omg.PortableInterceptor.ClientRequestInfo;
   
   import org.apache.geronimo.gbean.GBeanInfo;
   import org.apache.geronimo.gbean.GBeanInfoBuilder;
  @@ -96,6 +96,7 @@
       private ArrayList cssArgs;
       private Properties nssProps;
       private Properties cssProps;
  +    private ClientContext context;
   
       public CSSBean() {
           this.classLoader = null;
  @@ -186,7 +187,13 @@
               org.omg.CORBA.Object bean = ic.resolve(nameComponent);
               String beanIOR = nssORB.object_to_string(bean);
   
  -            return cssORB.string_to_object(beanIOR);
  +            bean =  cssORB.string_to_object(beanIOR);
  +
  +            if (bean instanceof ClientContextHolder) {
  +                ((ClientContextHolder)bean).setClientContext(context);
  +            }
  +
  +            return bean;
           } catch (UserException ue) {
               log.error(description + " - Looking up home", ue);
               throw new RuntimeException(ue);
  @@ -232,23 +239,16 @@
   
               cssORB = ORB.init((String[]) cssArgs.toArray(new 
String[cssArgs.size()]), properties);
   
  -            org.omg.CORBA.Object ref = 
cssORB.resolve_initial_references("ORBPolicyManager");
  -            PolicyManager pm = PolicyManagerHelper.narrow(ref);
  -
  -            Any cssany = cssORB.create_any();
  -            cssany.insert_Value(cssConfig);
  -
  -            Any txany = cssORB.create_any();
  -            txany.insert_Value(buildClientTransactionPolicyConfig());
  -
  -            pm.set_policy_overrides(new 
Policy[]{cssORB.create_policy(ClientPolicyFactory.POLICY_TYPE, cssany),
  -                                                 
cssORB.create_policy(ClientTransactionPolicyFactory.POLICY_TYPE, txany)}, 
SetOverrideType.ADD_OVERRIDE);
  -
               threadPool.execute(new Runnable() {
                   public void run() {
                       cssORB.run();
                   }
               });
  +
  +            context = new ClientContext();
  +            context.setSecurityConfig(cssConfig);
  +            
context.setTransactionConfig(buildClientTransactionPolicyConfig());
  +
           } finally {
               Thread.currentThread().setContextClassLoader(savedLoader);
           }
  @@ -261,10 +261,7 @@
       }
   
       public void doStop() throws Exception {
  -
  -        nssORB.shutdown(true);
           nssORB.destroy();
  -        cssORB.shutdown(true);
           cssORB.destroy();
           log.info("Stopped CORBA Client Security Server - " + description);
       }
  
  
  
  1.3       +5 -3      
openejb/modules/core/src/java/org/openejb/corba/SunNameService.java
  
  Index: SunNameService.java
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/corba/SunNameService.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SunNameService.java       24 Mar 2005 21:18:49 -0000      1.2
  +++ SunNameService.java       27 Mar 2005 02:04:40 -0000      1.3
  @@ -49,12 +49,14 @@
   
   import org.apache.commons.logging.Log;
   import org.apache.commons.logging.LogFactory;
  +import org.omg.CORBA.ORB;
  +
   import org.apache.geronimo.gbean.GBeanInfo;
   import org.apache.geronimo.gbean.GBeanInfoBuilder;
   import org.apache.geronimo.gbean.GBeanLifecycle;
   import org.apache.geronimo.j2ee.j2eeobjectnames.NameFactory;
   import org.apache.geronimo.system.serverinfo.ServerInfo;
  -import org.omg.CORBA.ORB;
  +
   
   /**
    * Starts the Sun transient cos naming service using NSORB.  This only not 
run
  
  
  
  1.1                  
openejb/modules/core/src/java/org/openejb/corba/ClientContext.java
  
  Index: ClientContext.java
  ===================================================================
  /**
   * Redistribution and use of this software and associated documentation
   * ("Software"), with or without modification, are permitted provided
   * that the following conditions are met:
   *
   * 1. Redistributions of source code must retain copyright
   *    statements and notices.  Redistributions must also contain a
   *    copy of this document.
   *
   * 2. Redistributions in binary form must reproduce the
   *    above copyright notice, this list of conditions and the
   *    following disclaimer in the documentation and/or other
   *    materials provided with the distribution.
   *
   * 3. The name "OpenEJB" must not be used to endorse or promote
   *    products derived from this Software without prior written
   *    permission of The OpenEJB Group.  For written permission,
   *    please contact [EMAIL PROTECTED]
   *
   * 4. Products derived from this Software may not be called "OpenEJB"
   *    nor may "OpenEJB" appear in their names without prior written
   *    permission of The OpenEJB Group. OpenEJB is a registered
   *    trademark of The OpenEJB Group.
   *
   * 5. Due credit should be given to the OpenEJB Project
   *    (http://openejb.sf.net/).
   *
   * THIS SOFTWARE IS PROVIDED BY THE OPENEJB GROUP AND CONTRIBUTORS
   * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
   * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
   * THE OPENEJB GROUP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
   * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
   * OF THE POSSIBILITY OF SUCH DAMAGE.
   *
   * Copyright 2005 (C) The OpenEJB Group. All Rights Reserved.
   *
   * $Id: ClientContext.java,v 1.1 2005/03/27 02:04:40 maguro Exp $
   */
  package org.openejb.corba;
  
  import org.openejb.corba.transaction.ClientTransactionPolicyConfig;
  import org.openejb.corba.security.config.css.CSSConfig;
  
  
  /**
   * @version $Revision: 1.1 $ $Date: 2005/03/27 02:04:40 $
   */
  public class ClientContext {
      
      private ClientTransactionPolicyConfig transactionConfig;
      private CSSConfig securityConfig;
  
      public ClientTransactionPolicyConfig getTransactionConfig() {
          return transactionConfig;
      }
  
      public void setTransactionConfig(ClientTransactionPolicyConfig 
transactionConfig) {
          this.transactionConfig = transactionConfig;
      }
  
      public CSSConfig getSecurityConfig() {
          return securityConfig;
      }
  
      public void setSecurityConfig(CSSConfig securityConfig) {
          this.securityConfig = securityConfig;
      }
  }
  
  
  
  1.1                  
openejb/modules/core/src/java/org/openejb/corba/ClientContextHolder.java
  
  Index: ClientContextHolder.java
  ===================================================================
  /**
   * Redistribution and use of this software and associated documentation
   * ("Software"), with or without modification, are permitted provided
   * that the following conditions are met:
   *
   * 1. Redistributions of source code must retain copyright
   *    statements and notices.  Redistributions must also contain a
   *    copy of this document.
   *
   * 2. Redistributions in binary form must reproduce the
   *    above copyright notice, this list of conditions and the
   *    following disclaimer in the documentation and/or other
   *    materials provided with the distribution.
   *
   * 3. The name "OpenEJB" must not be used to endorse or promote
   *    products derived from this Software without prior written
   *    permission of The OpenEJB Group.  For written permission,
   *    please contact [EMAIL PROTECTED]
   *
   * 4. Products derived from this Software may not be called "OpenEJB"
   *    nor may "OpenEJB" appear in their names without prior written
   *    permission of The OpenEJB Group. OpenEJB is a registered
   *    trademark of The OpenEJB Group.
   *
   * 5. Due credit should be given to the OpenEJB Project
   *    (http://openejb.sf.net/).
   *
   * THIS SOFTWARE IS PROVIDED BY THE OPENEJB GROUP AND CONTRIBUTORS
   * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
   * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
   * THE OPENEJB GROUP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
   * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
   * OF THE POSSIBILITY OF SUCH DAMAGE.
   *
   * Copyright 2005 (C) The OpenEJB Group. All Rights Reserved.
   *
   * $Id: ClientContextHolder.java,v 1.1 2005/03/27 02:04:40 maguro Exp $
   */
  package org.openejb.corba;
  
  
  /**
   * @version $Revision: 1.1 $ $Date: 2005/03/27 02:04:40 $
   */
  public interface ClientContextHolder {
  
      public ClientContext getClientContext();
  
      public void setClientContext(ClientContext context);
  }
  
  
  
  1.1                  
openejb/modules/core/src/java/org/openejb/corba/ClientContextManager.java
  
  Index: ClientContextManager.java
  ===================================================================
  /**
   * Redistribution and use of this software and associated documentation
   * ("Software"), with or without modification, are permitted provided
   * that the following conditions are met:
   *
   * 1. Redistributions of source code must retain copyright
   *    statements and notices.  Redistributions must also contain a
   *    copy of this document.
   *
   * 2. Redistributions in binary form must reproduce the
   *    above copyright notice, this list of conditions and the
   *    following disclaimer in the documentation and/or other
   *    materials provided with the distribution.
   *
   * 3. The name "OpenEJB" must not be used to endorse or promote
   *    products derived from this Software without prior written
   *    permission of The OpenEJB Group.  For written permission,
   *    please contact [EMAIL PROTECTED]
   *
   * 4. Products derived from this Software may not be called "OpenEJB"
   *    nor may "OpenEJB" appear in their names without prior written
   *    permission of The OpenEJB Group. OpenEJB is a registered
   *    trademark of The OpenEJB Group.
   *
   * 5. Due credit should be given to the OpenEJB Project
   *    (http://openejb.sf.net/).
   *
   * THIS SOFTWARE IS PROVIDED BY THE OPENEJB GROUP AND CONTRIBUTORS
   * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
   * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
   * THE OPENEJB GROUP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
   * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
   * OF THE POSSIBILITY OF SUCH DAMAGE.
   *
   * Copyright 2005 (C) The OpenEJB Group. All Rights Reserved.
   *
   * $Id: ClientContextManager.java,v 1.1 2005/03/27 02:04:40 maguro Exp $
   */
  package org.openejb.corba;
  
  
  /**
   * @version $Revision: 1.1 $ $Date: 2005/03/27 02:04:40 $
   */
  public final class ClientContextManager {
  
      private static final ThreadLocal clientContexts = new ThreadLocal() {
          protected Object initialValue() {
              return new ClientContext();
          }
      };
  
      public static ClientContext getClientContext() {
          return (ClientContext) clientContexts.get();
      }
  
      public static void setClientContext(ClientContext context) {
          clientContexts.set(context);
      }
  }
  
  
  
  1.1                  
openejb/modules/core/src/java/org/openejb/corba/MinorCodes.java
  
  Index: MinorCodes.java
  ===================================================================
  /**
   * Redistribution and use of this software and associated documentation
   * ("Software"), with or without modification, are permitted provided
   * that the following conditions are met:
   *
   * 1. Redistributions of source code must retain copyright
   *    statements and notices.  Redistributions must also contain a
   *    copy of this document.
   *
   * 2. Redistributions in binary form must reproduce the
   *    above copyright notice, this list of conditions and the
   *    following disclaimer in the documentation and/or other
   *    materials provided with the distribution.
   *
   * 3. The name "OpenEJB" must not be used to endorse or promote
   *    products derived from this Software without prior written
   *    permission of The OpenEJB Group.  For written permission,
   *    please contact [EMAIL PROTECTED]
   *
   * 4. Products derived from this Software may not be called "OpenEJB"
   *    nor may "OpenEJB" appear in their names without prior written
   *    permission of The OpenEJB Group. OpenEJB is a registered
   *    trademark of The OpenEJB Group.
   *
   * 5. Due credit should be given to the OpenEJB Project
   *    (http://openejb.sf.net/).
   *
   * THIS SOFTWARE IS PROVIDED BY THE OPENEJB GROUP AND CONTRIBUTORS
   * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
   * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
   * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
   * THE OPENEJB GROUP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
   * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
   * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
   * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
   * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
   * OF THE POSSIBILITY OF SUCH DAMAGE.
   *
   * Copyright 2005 (C) The OpenEJB Group. All Rights Reserved.
   *
   * $Id: MinorCodes.java,v 1.1 2005/03/27 02:04:40 maguro Exp $
   */
  package org.openejb.corba;
  
  import com.sun.corba.se.internal.orbutil.ORBConstants;
  
  import org.apache.geronimo.interop.ApacheVMCID;
  
  
  /**
   * @version $Revision: 1.1 $ $Date: 2005/03/27 02:04:40 $
   */
  public interface MinorCodes {
  
      public static final int SUBSYSTEM_SIZE = 200;
  
      /**
       * GENERAL_BASE is used for orbutil/MinorCodes
       */
      public static final int GENERAL_BASE = ApacheVMCID.value + SUBSYSTEM_SIZE;
  
      /**
       * COMM_FAILURE minor codes
       */
      public static final int UNSUPPORTED_ENDPOINT_TYPE = 
ORBConstants.GENERAL_BASE + 1;
  }
  
  
  

Reply via email to