/** * Creates a new connection for the managed connection pool. * * @return the managed connection from the EIS as ManagedConnection object. */ @Override public Object getNewPoolConnection() throws PoolException { ManagedConnection manConn = null; try { manConn = connFactory.createManagedConnection(sub, connReqInfo); } catch (ResourceException rex) { rex.printStackTrace(); throw new PoolException( "ManagedPoolCacheImpl::getNewConnection: Exception in creating new Managed PooledConnection", rex); } manConn .addConnectionEventListener((javax.resource.spi.ConnectionEventListener) connEventListner); return manConn; }
private void handleException(Exception exc, LocalTransaction transaction) { if(null != transaction) { try { transaction.rollback(); } catch(ResourceException txExc) { txExc.printStackTrace(); } } } }
/** * Print the stack trace of this exception to a given {@code PrintStream} * * @param s * The {@code PrintStream} to which to write the stack trace */ public void printStackTrace(PrintStream s) { super.printStackTrace(s); if (getLinkedException() != null) { s.print("at "); getLinkedException().printStackTrace(s); } }
/** * Print the stack trace of this exception to a given {@code PrintStream} * * @param s * The {@code PrintStream} to which to write the stack trace */ public void printStackTrace(PrintStream s) { super.printStackTrace(s); if (getLinkedException() != null) { s.print("at "); getLinkedException().printStackTrace(s); } }
/** * Print the stack trace of this exception to a given {@code PrintWriter} * * @param s * The {@code PrintWriter} to which to write the stack trace */ public void printStackTrace(PrintWriter s) { super.printStackTrace(s); if (getLinkedException() != null) { s.print("at "); getLinkedException().printStackTrace(s); } } }
/** * Print the stack trace of this exception to a given {@code PrintWriter} * * @param s * The {@code PrintWriter} to which to write the stack trace */ public void printStackTrace(PrintWriter s) { super.printStackTrace(s); if (getLinkedException() != null) { s.print("at "); getLinkedException().printStackTrace(s); } } }
/** * Prints the composite message and the embedded stack trace to the * specified print stream. * * @param stream Stream to print to. */ public void printStackTrace(final PrintStream stream) { Exception linked = getLinkedException(); if (linked == null || NestedThrowable.PARENT_TRACE_ENABLED) { super.printStackTrace(stream); } NestedThrowable.Util.print(linked, stream); }
/** * Prints the composite message and the embedded stack trace to the * specified print writer. * * @param writer Writer to print to. */ public void printStackTrace(final PrintWriter writer) { Exception linked = getLinkedException(); if (linked == null || NestedThrowable.PARENT_TRACE_ENABLED) { super.printStackTrace(writer); } NestedThrowable.Util.print(linked, writer); }
/** * Creates a new connection for the managed connection pool. * * @return the managed connection from the EIS as ManagedConnection object. * @throws PoolException */ @Override public Object getNewPoolConnection() throws PoolException { ManagedConnection manConn = null; try { manConn = connFactory.createManagedConnection(sub, connReqInfo); } catch (ResourceException rex) { rex.printStackTrace(); throw new PoolException(LocalizedStrings.ManagedPoolCacheImpl_MANAGEDPOOLCACHEIMPLGETNEWCONNECTION_EXCEPTION_IN_CREATING_NEW_MANAGED_POOLEDCONNECTION.toLocalizedString(), rex); } manConn .addConnectionEventListener((javax.resource.spi.ConnectionEventListener) connEventListner); return manConn; }
/** * Creates a new connection for the managed connection pool. * * @return the managed connection from the EIS as ManagedConnection object. * @throws PoolException */ @Override public Object getNewPoolConnection() throws PoolException { ManagedConnection manConn = null; try { manConn = connFactory.createManagedConnection(sub, connReqInfo); } catch (ResourceException rex) { rex.printStackTrace(); throw new PoolException(LocalizedStrings.ManagedPoolCacheImpl_MANAGEDPOOLCACHEIMPLGETNEWCONNECTION_EXCEPTION_IN_CREATING_NEW_MANAGED_POOLEDCONNECTION.toLocalizedString(), rex); } manConn .addConnectionEventListener((javax.resource.spi.ConnectionEventListener) connEventListner); return manConn; }
JCALogger.ROOT_LOGGER.failedToCloseInteractionConnection(e.getMessage()); if (_logger.isDebugEnabled()) { e.printStackTrace();