Package com.sun.enterprise

Examples of com.sun.enterprise.PoolManager


                //Suspend it back
                    h.setEnlistmentSuspended(true);
            } catch( Exception e ) {
                //In the rare cases where enlistResource throws exception, we
              //should return the resource to the pool
                    PoolManager mgr = Switch.getSwitch().getPoolManager();
                  mgr.putbackDirectToPool( h, h.getResourceSpec().getConnectionPoolName());
              _logger.log(Level.WARNING, "poolmgr.err_enlisting_res_in_getconn");
              if (_logger.isLoggable(Level.FINE) ) {
                  _logger.fine("rm.enlistResource threw Exception. Returning resource to pool");
              }
              //and rethrow the exception
View Full Code Here


        }

        //Check if this pool has been brought into memory
        //If its already in memory, just call reconfig on it

        PoolManager poolMgr = Switch.getSwitch().getPoolManager();
        try {
            poolMgr.reconfigPoolProperties(ccp);
        } catch (PoolingException pe) {
            throw new ConnectorRuntimeException(pe.getMessage());
        }
        //Run setXXX methods on the copy of the MCF that we have
        //this is done to update the MCF to reflect changes in the
View Full Code Here

    }

    private void createAndAddPool( String poolName, PoolType pt) throws
            ConnectorRuntimeException
    {
        PoolManager poolMgr = Switch.getSwitch().getPoolManager();
        try {
      poolMgr.createEmptyConnectionPool( poolName, pt );
        } catch( PoolingException pe ) {
            String i18nMsg = localStrings.getString(
                "ccp_adm.failed_to_create_pool_object");
            ConnectorRuntimeException cre =
                new ConnectorRuntimeException( i18nMsg );
View Full Code Here

TOP

Related Classes of com.sun.enterprise.PoolManager

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.