Search in sources :

Example 26 with AcsJContainerEx

use of alma.JavaContainerError.wrappers.AcsJContainerEx in project ACS by ACS-Community.

the class AcsEmbeddedContainerRunner method run.

void run(AcsCorba acsCorba) throws AcsJContainerEx {
    getContainerLogger();
    if (!acsCorba.isInitialized()) {
        AcsJContainerEx ex = new AcsJContainerEx();
        ex.setContextInfo("The provided AcsCorba object must be initialized!");
        throw ex;
    }
    m_acsCorba = acsCorba;
    checkReadyToRun(null);
    // not calling AcsCorba.initCorba here is the main reason we have a separate embedded-container runner
    System.out.println(ContainerOperations.ContainerStatusStartupBeginMsg);
    initManagerProxy();
    createContainer();
    m_container.initialize();
    System.out.println(ContainerOperations.ContainerStatusStartupEndMsg);
}
Also used : AcsJContainerEx(alma.JavaContainerError.wrappers.AcsJContainerEx)

Example 27 with AcsJContainerEx

use of alma.JavaContainerError.wrappers.AcsJContainerEx in project ACS by ACS-Community.

the class AcsManagerProxy method getManager.

/**
	 * Gets the ACS Manager, either cached or freshly retrieved.
	 * Note that no login is done here, so call {@link #loginToManager(Client, boolean)} after this.
	 * 
	 * @return Manager 
	 * @throws AcsJContainerServicesEx
	 */
public synchronized Manager getManager() throws AcsJContainerEx {
    if (m_manager == null) {
        if (m_shuttingDown) {
            String msg = "call to getManager() fails while shutting down.";
            m_logger.fine(msg);
            AcsJContainerEx ex = new AcsJContainerEx();
            ex.setContextInfo(msg);
            throw ex;
        }
        m_logger.fine("Manager reference not available. Trying to resolve...");
        findManager(m_managerLoc, 0);
    }
    return m_manager;
}
Also used : AcsJContainerEx(alma.JavaContainerError.wrappers.AcsJContainerEx)

Aggregations

AcsJContainerEx (alma.JavaContainerError.wrappers.AcsJContainerEx)27 POA (org.omg.PortableServer.POA)6 Object (org.omg.CORBA.Object)4 Policy (org.omg.CORBA.Policy)4 AdapterAlreadyExists (org.omg.PortableServer.POAPackage.AdapterAlreadyExists)4 InvalidPolicy (org.omg.PortableServer.POAPackage.InvalidPolicy)4 AcsJUnexpectedExceptionEx (alma.ACSErrTypeCommon.wrappers.AcsJUnexpectedExceptionEx)3 AdapterNonExistent (org.omg.PortableServer.POAPackage.AdapterNonExistent)3 AcsJContainerServicesEx (alma.JavaContainerError.wrappers.AcsJContainerServicesEx)2 AcsJException (alma.acs.exceptions.AcsJException)2 AcsLogger (alma.acs.logging.AcsLogger)2 LogConfigException (alma.acs.logging.config.LogConfigException)2 StopWatch (alma.acs.util.StopWatch)2 RejectedExecutionException (java.util.concurrent.RejectedExecutionException)2 Servant (org.omg.PortableServer.Servant)2 CouldntAccessComponentEx (alma.ACSErrTypeCommon.CouldntAccessComponentEx)1 CouldntAccessPropertyEx (alma.ACSErrTypeCommon.CouldntAccessPropertyEx)1 TypeNotSupportedEx (alma.ACSErrTypeCommon.TypeNotSupportedEx)1 AcsComponentClassLoader (alma.acs.classloading.AcsComponentClassLoader)1 ComponentLifecycle (alma.acs.component.ComponentLifecycle)1