Examples of afterInvoke()


Examples of org.apache.openejb.core.transaction.TransactionPolicy.afterInvoke()

        } catch (NoSuchObjectException e) {
            txPolicy.handleApplicationException(e, false, txContext);
        } catch (Throwable e) {// handle reflection exception
            txPolicy.handleSystemException(e, null, txContext);
        } finally {
            txPolicy.afterInvoke(null, txContext);
        }
    }

    private void cancelTimers(ThreadContext threadContext) {
        CoreDeploymentInfo deploymentInfo = threadContext.getDeploymentInfo();
View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionPolicy.afterInvoke()

                ExceptionInInitializerError - if the initialization provoked by this method fails.
            */
            txPolicy.handleSystemException(iae, bean, txContext);
        } finally {
            entrancyTracker.exit(callContext.getDeploymentInfo(), callContext.getPrimaryKey());
            txPolicy.afterInvoke(bean, txContext);
        }

        return returnValue;
    }

View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionPolicy.afterInvoke()

                NullPointerException - if the specified object is null and the method is an instance method.
                ExceptionInInitializerError - if the initialization provoked by this method fails.
            */
            txPolicy.handleSystemException(e, bean, txContext);
        } finally {
            txPolicy.afterInvoke(bean, txContext);
        }

        return new ProxyInfo(deploymentInfo, primaryKey);

    }
View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionPolicy.afterInvoke()

                /* Application Exception ***********************/
                instanceManager.poolInstance(callContext, bean, callContext.getPrimaryKey());
                txPolicy.handleApplicationException(e, type == ExceptionType.APPLICATION_ROLLBACK, txContext);
            }
        } finally {
            txPolicy.afterInvoke(bean, txContext);
        }
    }

    public void discardInstance(Object bean, ThreadContext threadContext) {
        if (bean != null) {
View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionPolicy.afterInvoke()

                txPolicy.handleApplicationException(re, type == ExceptionType.APPLICATION_ROLLBACK, txContext);
            }
        } finally {

            txPolicy.afterInvoke(instance, txContext);
        }

        return returnValue;
    }
View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionPolicy.afterInvoke()

                txPolicy.handleApplicationException(re, type == ExceptionType.APPLICATION_ROLLBACK, txContext);
            }
        } finally {
            unregisterEntityManagers(callContext);
            txPolicy.afterInvoke(bean, txContext);
        }

        return returnValue;
    }
View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionPolicy.afterInvoke()

                txPolicy.handleApplicationException(re, type == ExceptionType.APPLICATION_ROLLBACK, txContext);
            }
        } finally {
            unregisterEntityManagers(callContext);
            txPolicy.afterInvoke(bean, txContext);
        }

        return returnValue;
    }
View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionPolicy.afterInvoke()

        } catch (Throwable e) {
            /* System Exception ****************************/
            txPolicy.handleSystemException(e, bean, txContext);
        } finally {
            entrancyTracker.exit(deploymentInfo, callContext.getPrimaryKey());
            txPolicy.afterInvoke(bean, txContext);
        }

        return returnValue;
    }

View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionPolicy.afterInvoke()

            }
        } catch (Throwable e) {
            /* System Exception ****************************/
            txPolicy.handleSystemException(e, bean, txContext);
        } finally {
            txPolicy.afterInvoke(bean, txContext);
        }

        return returnValue;
    }

View Full Code Here

Examples of org.apache.openejb.core.transaction.TransactionPolicy.afterInvoke()

        } catch (CreateException e) {
            txPolicy.handleSystemException(e, bean, txContext);
        } catch (Throwable e) {
            txPolicy.handleSystemException(e, bean, txContext);
        } finally {
            txPolicy.afterInvoke(bean, txContext);
        }

        return new ProxyInfo(deploymentInfo, primaryKey);
    }
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.