Examples of ComponentInvocation


Examples of org.glassfish.api.invocation.ComponentInvocation

        if (handle.getSecurityContext() != null) {
            resetSecurityContext = securityContext.getCurrentSecurityContext();
            securityContext.setCurrentSecurityContext(handle.getSecurityContext());
        }
        if (handle.getInvocation() != null) {
            ComponentInvocation invocation = handle.getInvocation();
            // Each invocation needs a ResourceTableKey that returns a unique hashCode for TransactionManager
            invocation.setResourceTableKey(new PairKey(invocation.getInstance(), Thread.currentThread()));
            invocationManager.preInvoke(invocation);
        }
        // Ensure that there is no existing transaction in the current thread
        if (transactionManager != null) {
            transactionManager.clearThreadTx();
View Full Code Here

Examples of org.glassfish.api.invocation.ComponentInvocation

        }
        return false;
    }

    private ComponentInvocation createComponentInvocation(ComponentInvocation currInv) {
        ComponentInvocation newInv = new ComponentInvocation(
                currInv.getComponentId(),
                ComponentInvocation.ComponentInvocationType.SERVLET_INVOCATION,
                currInv.getContainer(),
                currInv.getAppName(),
                currInv.getModuleName()
        );
        newInv.instance = currInv.getInstance();
        if (naming) {
            newInv.setJNDIEnvironment(currInv.getJNDIEnvironment());
        }
        return newInv;
    }
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.