Examples of releaseConnection()


Examples of org.apache.jackrabbit.webdav.client.methods.PutMethod.releaseConnection()

            return uploadUrl;
        } catch (Exception e) {
            throw new IOException(e.getMessage());
        } finally {
            // Release current connection to the connection pool
            put.releaseConnection();
        }
    }

    public String getSlingUrl() {
        return slingUrl;
View Full Code Here

Examples of org.apache.jackrabbit.webdav.client.methods.ReportMethod.releaseConnection()

                        throw new RepositoryException(e.getMessage());
                    } catch (DavException e) {
                        throw ExceptionConverter.generate(e);
                    } finally {
                        if (rm != null) {
                            rm.releaseConnection();
                        }
                    }
                }
            } else {
                // start build uri from root-item
View Full Code Here

Examples of org.apache.jackrabbit.webdav.client.methods.SearchMethod.releaseConnection()

            throw new RepositoryException(e);
        } catch (DavException e) {
            throw ExceptionConverter.generate(e);
        finally {
            if (method != null) {
                method.releaseConnection();
            }
        }
    }

    /**
 
View Full Code Here

Examples of org.apache.jackrabbit.webdav.client.methods.SubscribeMethod.releaseConnection()

            throw new RepositoryException(e);
        } catch (DavException e) {
            throw ExceptionConverter.generate(e);
        finally {
            if (method != null) {
                method.releaseConnection();
            }
        }
    }

    private void unsubscribe(String uri, String subscriptionId, SessionInfo sessionInfo) throws RepositoryException {
View Full Code Here

Examples of org.apache.jackrabbit.webdav.client.methods.UnLockMethod.releaseConnection()

            } catch (DavException e) {
                throw ExceptionConverter.generate(e);
            } finally {
                if (method != null) {
                    // release UNLOCK method
                    method.releaseConnection();
                }
            }
        }

        private void dispose() {
View Full Code Here

Examples of org.apache.jackrabbit.webdav.client.methods.UnSubscribeMethod.releaseConnection()

            throw new RepositoryException(e);
        } catch (DavException e) {
            throw ExceptionConverter.generate(e);
        finally {
            if (method != null) {
                method.releaseConnection();
            }
        }
    }

    private void resolveNodeType(Set<Name> resolved, Name ntName) {
View Full Code Here

Examples of org.apache.ojb.broker.accesslayer.ConnectionFactory.releaseConnection()

        // the repository.xml file.
        ClassDescriptor cld = broker.getClassDescriptor(PerformanceArticle.class);
        JdbcConnectionDescriptor jcd = MetadataManager.getInstance().connectionRepository()
                .getDescriptor(TestHelper.DEF_KEY);
        ConnectionFactory cf = ConnectionFactoryFactory.getInstance().createConnectionFactory();
    cf.releaseConnection(jcd, conn);
    }

    /**
     * deletes all PerformanceArticle created by <code>insertNewArticles</code>.
     */
 
View Full Code Here

Examples of org.apache.ojb.broker.accesslayer.ConnectionManagerIF.releaseConnection()

                have to complete the "local tx" of the connectionManager before release the
                connection
                */
                cm.localCommit();
            }
            cm.releaseConnection();
        }
    }

    public void commit()
    {
View Full Code Here

Examples of org.apache.openjpa.kernel.StoreManager.releaseConnection()

                    // TODO add error handling.
                    e.printStackTrace();
                }
            }
            storeManager.commit();
            storeManager.releaseConnection();
        }
        return errors;
    }

    public void run() {
View Full Code Here

Examples of org.apache.tajo.rpc.RpcConnectionPool.releaseConnection()

        TajoMasterProtocol.TajoMasterProtocolService masterClientService = tmClient.getStub();
        masterClientService.allocateWorkerResources(null, request, callBack);
      } catch (Exception e) {
        LOG.error(e.getMessage(), e);
      } finally {
        connPool.releaseConnection(tmClient);
      }

      TajoMasterProtocol.WorkerResourceAllocationResponse response = null;
      while(!stopped.get()) {
        try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.