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);
}
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;
}
Aggregations