public Reference getReference() throws NamingException { return IntraVmObjectFactory.createReference ( this , getUniqueResourceName() ); }
private void unRegisterManagement(AbstractDataSourceBean bean) throws Fabric3Exception { String name = bean.getUniqueResourceName(); managementService.remove(encode(name), "datasources"); }
private void unRegisterManagement(AbstractDataSourceBean bean) throws DataSourceFactoryException { try { String name = bean.getUniqueResourceName(); managementService.remove(encode(name), "datasources"); } catch (ManagementException e) { throw new DataSourceFactoryException(e); } }
private void registerManagement(AbstractDataSourceBean bean, List<String> aliases) throws Fabric3Exception { String name = bean.getUniqueResourceName(); DataSourceWrapper wrapper = new DataSourceWrapper(bean, aliases); managementService.export(encode(name), "datasources", "Configured datasources", wrapper); }
private void registerManagement(AbstractDataSourceBean bean, List<String> aliases) throws DataSourceFactoryException { String name = bean.getUniqueResourceName(); try { DataSourceWrapper wrapper = new DataSourceWrapper(bean, aliases); managementService.export(encode(name), "datasources", "Configured datasources", wrapper); } catch (ManagementException e) { throw new DataSourceFactoryException(e); } }
public void close() { if ( LOGGER.isDebugEnabled() ) LOGGER.logInfo ( this + ": close..." ); if (connectionPool != null) { connectionPool.destroy(); } connectionPool = null; doClose(); try { IntraVmObjectRegistry.removeResource ( getUniqueResourceName() ); } catch ( NameNotFoundException e ) { //ignore but log if ( LOGGER.isTraceEnabled() ) LOGGER.logTrace ( this + ": Error removing from JNDI" , e ); } if ( LOGGER.isTraceEnabled() ) LOGGER.logTrace ( this + ": close done." ); }
if ( minPoolSize < 0 || minPoolSize > maxPoolSize ) throwAtomikosSQLException("Property 'minPoolSize' must be at least 0 and at most maxPoolSize, was: " + minPoolSize); if ( getUniqueResourceName() == null ) throwAtomikosSQLException("Property 'uniqueResourceName' cannot be null"); if ( getMinPoolSize() == DEFAULT_POOL_SIZE ) {