/** * Constructs a <code>BootstrapContext</code> with default * thread pool for work manager. * * @param moduleName resource-adapter name * @throws ConnectorRuntimeException If there is a failure in * retrieving WorkManager. */ public BootstrapContextImpl (String moduleName) throws ConnectorRuntimeException{ this.moduleName = moduleName; initializeWorkManager(); }
/** * Retrieves the work manager. * * @return <code>WorkManager</code> instance. * @see com.sun.enterprise.connectors.work.CommonWorkManager * @see com.sun.enterprise.connectors.work.WorkManagerFactory */ public WorkManager getWorkManager() { initializeWorkManager(); return wm; }
/** * Constructs a <code>BootstrapContext</code> with a specified * thread pool for work manager. * * @param poolId thread-pool-id * @param moduleName resource-adapter name * @throws ConnectorRuntimeException If there is a failure in * retrieving WorkManager. */ public BootstrapContextImpl (String poolId, String moduleName, ClassLoader rarCL) throws ConnectorRuntimeException{ this.threadPoolId = poolId; this.moduleName = moduleName; this.rarCL = rarCL; initializeWorkManager(); }