Package com.caucho.config

Examples of com.caucho.config.ConfigException


        _message.setEJBClass(getEjbClass());
     
      getConfig().setBeanConfig(getEjbName(), _message);
    }
    else if (! (oldBean instanceof EjbMessageBean<?>)) {
      throw new ConfigException(L.l("message bean '{0}' conflicts with prior {1} bean at {2}.",
                                    getEjbName(), oldBean.getEJBKind(),
                                    oldBean.getLocation()));
    }
    else
      _message = (EjbMessageBean<?>) oldBean;
View Full Code Here


    if ("Read".equals(lock))
      _lock = LockType.READ;
    else if ("Write".equals(lock))
      _lock = LockType.WRITE;
    else
      throw new ConfigException(L.l("'{0}' is an unknown lock type", lock));
  }
View Full Code Here

    else if (trans.equals("Never")) {
    }
    else if (trans.equals("Supports")) {
    }
    else
      throw new ConfigException(L.l("'{0}' is an unknown transaction type.  The transaction types are:\n  Required - creates a new transaction if none is active.\n  RequiresNew - always creates a new transaction.\n  Mandatory - requires an active transaction.\n  NotSupported - suspends any active transaction.\n  Never - forbids any active transaction.\n  Supports - allows a transaction or no transaction.", trans));

    _trans = trans;
  }
View Full Code Here

    throws ConfigException
  {
    EjbBean<?> bean = _config.getBeanConfig(_method.getEJBName());

    if (bean == null)
      throw new ConfigException(L.l("'{0}' is an unknown entity bean.",
                                    _method.getEJBName()));

    EjbMethodPattern<?> method = bean.createMethod(_method);

    method.setTransAttribute(_trans);
View Full Code Here

        if (ifAbsent) {
          close();
          return;
        }
       
        throw new ConfigException(L.l("'{0}' with full name '{1}' is an invalid Cache name because it's already used by another cache.",
                                      this, _guid));
      }

      _entryCache = new LruCache<Object,DistCacheEntry>(512);
     
View Full Code Here

  private void initName(String name)
    throws ConfigException
  {
    if (_name == null || _name.length() == 0)
      throw new ConfigException(L.l("Each Cache must have a name."));

    String contextId = Environment.getEnvironmentName();

    if (_guid == null)
      _guid = contextId + ":" + _name;
View Full Code Here

    if (persistence != null) {
      try {
        result = Persistence.valueOf(persistence.toUpperCase(Locale.ENGLISH));
      }
      catch (Exception e) {
        throw new ConfigException(L.l("'{0}' is not a valid Persistence option", persistence));
      }
    }

    setPersistenceMode(result);
  }
View Full Code Here

    if (_scopeName != null) {
      try {
        scope = Scope.valueOf(_scopeName.toUpperCase(Locale.ENGLISH));
      }
      catch (Exception e) {
        throw new ConfigException(L.l("'{0}' is not a valid Scope option", scopeName));
      }
    }

    setScopeMode(scope);
  }
View Full Code Here

      return;
   
    DistCacheSystem cacheService = DistCacheSystem.getCurrent();

    if (cacheService == null)
      throw new ConfigException(L.l("'{0}' cannot be initialized because it is not in a clustered environment",
                                    getClass().getSimpleName()));

    _manager = cacheService.getDistCacheManager();

    if (_manager == null)
View Full Code Here

  public void init()
    throws ConfigException
  {
    if (getName() == null)
      throw new ConfigException(L.l("`{0}' is required", "name"));
  }
View Full Code Here

TOP

Related Classes of com.caucho.config.ConfigException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.