Package de.danet.an.workflow.spis.ras

Examples of de.danet.an.workflow.spis.ras.FactoryConfigurationError


  try {
      rmsFac.setResourceAssignmentContext (rasCtx);
      rms = rmsFac.newResourceManagementService ();
  } catch (de.danet.an.workflow.spis.rms.FactoryConfigurationError e) {
      throw (FactoryConfigurationError)
          (new FactoryConfigurationError
     ("Cannot create RMS: " + e.getMessage())).initCause(e);
  }
        this.ds = ds;
    }
View Full Code Here


  // obtain base resource management service factory
  try {
      rmsf = ResourceManagementServiceFactory.newInstance();
  } catch (de.danet.an.workflow.spis.rms.FactoryConfigurationError e) {
      throw (FactoryConfigurationError)
    (new FactoryConfigurationError
     ("Required ResourceManagementServiceFactory not configured "
      + "properly: " + e.getMessage())).initCause(e);
  }
    }
View Full Code Here

    /* Comment copied from interface. */
    public ResourceAssignmentService newResourceAssignmentService ()
  throws FactoryConfigurationError {
  if (rmsf == null) {
      throw new FactoryConfigurationError
    ("Resource management service factory not configured.");
  }
  ResourceAssignmentContext rasCtx = null;
        try {
            rasCtx = (ResourceAssignmentContext)EJBUtil.createSession
                (WorkflowEngineHome.class, ENGINE_NAME);
        } catch (ResourceNotAvailableException e) {
            throw (FactoryConfigurationError)
                (new FactoryConfigurationError
                 ("Required WorkflowEngine EJB not available: "
                  + e.getMessage())).initCause(e);
           
        }
        DataSource ds = null;
        try {
            ds = (DataSource)EJBUtil.lookupJNDIEntry(DB_NAME);
        } catch (NamingException e) {
            throw (FactoryConfigurationError)
                (new FactoryConfigurationError
                 ("Required datasource available: " + e.getMessage()))
                .initCause(e);
           
        }
  return new StandardResourceAssignmentService(rmsf, rasCtx, ds);
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.spis.ras.FactoryConfigurationError

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.