Examples of SFSBContextHandleImpl


Examples of org.jboss.as.jpa.ejb3.SFSBContextHandleImpl

        ComponentInstance componentInstance = context.getPrivateData(ComponentInstance.class);
        if (componentInstance == null) {
            throw MESSAGES.notSetInInterceptorContext("componentInstance", context);
        }
        StatefulSessionComponentInstance sfsb = (StatefulSessionComponentInstance) componentInstance;
        SFSBContextHandleImpl sfsbContextHandle = new SFSBContextHandleImpl(sfsb);

        SFSBCallStack.pushCall(sfsbContextHandle);
        try {
            return context.proceed();   // call the next interceptor or target
        } finally {
View Full Code Here

Examples of org.jboss.as.jpa.ejb3.SFSBContextHandleImpl

        try {

            return interceptorContext.proceed();
        } finally {
            StatefulSessionComponentInstance sfsb = (StatefulSessionComponentInstance) interceptorContext.getPrivateData(ComponentInstance.class);
            SFSBContextHandleImpl sfsbContextHandle = new SFSBContextHandleImpl(sfsb);
            List<EntityManager> readyToClose = sfsbxpcMap.remove(sfsbContextHandle);
            if (readyToClose != null && readyToClose.size() > 0) {
                for (EntityManager entityManager : readyToClose) {
                    if (entityManager instanceof ExtendedEntityManager) {
                        // TODO:  continue iterating through remaining entity managers and chain any exceptions
View Full Code Here

Examples of org.jboss.as.jpa.ejb3.SFSBContextHandleImpl

        return new Interceptor() {
            @Override
            public Object processInvocation(InterceptorContext interceptorContext) throws Exception {
                Object target = context.getContextData().get(AbstractComponent.COMPONENT_INSTANCE_KEY);
                StatefulSessionComponentInstance sfsb = (StatefulSessionComponentInstance)target;
                SFSBContextHandleImpl sfsbContextHandle = new SFSBContextHandleImpl(sfsb);
                SFSBXPCMap.getINSTANCE().finishRegistrationOfPersistenceContext(sfsbContextHandle);
                return interceptorContext.proceed();
            }
        };
    }
View Full Code Here

Examples of org.jboss.as.jpa.ejb3.SFSBContextHandleImpl

    public Interceptor create(final InterceptorFactoryContext context) {
        return new Interceptor() {
            @Override
            public Object processInvocation(InterceptorContext interceptorContext) throws Exception {
                StatefulSessionComponentInstance sfsb = (StatefulSessionComponentInstance) context.getContextData().get(AbstractComponent.COMPONENT_INSTANCE_KEY);
                SFSBContextHandleImpl sfsbContextHandle = new SFSBContextHandleImpl(sfsb);
                List<EntityManager> readyToClose = SFSBXPCMap.getINSTANCE().remove(sfsbContextHandle);
                if (readyToClose != null && readyToClose.size() > 0) {
                    for (EntityManager entityManager : readyToClose) {
                        if (entityManager instanceof ExtendedEntityManager) {
                            // TODO:  continue iterating through remaining entity managers and chain any exceptions
View Full Code Here

Examples of org.jboss.as.jpa.ejb3.SFSBContextHandleImpl

        ComponentInstance componentInstance = context.getPrivateData(ComponentInstance.class);
        if (componentInstance == null) {
            throw new IllegalStateException("componentInstance not set in InterceptorContext: " + context);
        }
        StatefulSessionComponentInstance sfsb = (StatefulSessionComponentInstance)componentInstance;
        SFSBContextHandleImpl sfsbContextHandle = new SFSBContextHandleImpl(sfsb);

        SFSBCallStack.pushCall(sfsbContextHandle);
        try {
            return context.proceed();   // call the next interceptor or target
        }
View Full Code Here

Examples of org.jboss.as.jpa.ejb3.SFSBContextHandleImpl


    @Override
    public void invoke(ComponentInstance target) throws Exception {
        StatefulSessionComponentInstance sfsb = (StatefulSessionComponentInstance)target;
        SFSBContextHandleImpl sfsbContextHandle = new SFSBContextHandleImpl(sfsb);
        SFSBXPCMap.getINSTANCE().finishRegistrationOfPersistenceContext(sfsbContextHandle);
    }
View Full Code Here

Examples of org.jboss.as.jpa.ejb3.SFSBContextHandleImpl


    @Override
    public void invoke(ComponentInstance target) throws Exception {
        StatefulSessionComponentInstance sfsb = (StatefulSessionComponentInstance)target;
        SFSBContextHandleImpl sfsbContextHandle = new SFSBContextHandleImpl(sfsb);
        SFSBXPCMap.getINSTANCE().remove(sfsbContextHandle);
    }
View Full Code Here

Examples of org.jboss.as.jpa.ejb3.SFSBContextHandleImpl

        ComponentInstance componentInstance = context.getPrivateData(ComponentInstance.class);
        if (componentInstance == null) {
            throw new IllegalStateException("componentInstance not set in InterceptorContext: " + context);
        }
        StatefulSessionComponentInstance sfsb = (StatefulSessionComponentInstance) componentInstance;
        SFSBContextHandleImpl sfsbContextHandle = new SFSBContextHandleImpl(sfsb);

        SFSBCallStack.pushCall(sfsbContextHandle);
        try {
            return context.proceed();   // call the next interceptor or target
        } finally {
View Full Code Here

Examples of org.jboss.as.jpa.ejb3.SFSBContextHandleImpl

    }

    @Override
    public Object processInvocation(InterceptorContext interceptorContext) throws Exception {
        StatefulSessionComponentInstance sfsb = (StatefulSessionComponentInstance) interceptorContext.getPrivateData(ComponentInstance.class);
        SFSBContextHandleImpl sfsbContextHandle = new SFSBContextHandleImpl(sfsb);
        sfsbxpcMap.finishRegistrationOfPersistenceContext(sfsbContextHandle);
        return interceptorContext.proceed();
    }
View Full Code Here

Examples of org.jboss.as.jpa.ejb3.SFSBContextHandleImpl

        try {

            return interceptorContext.proceed();
        } finally {
            StatefulSessionComponentInstance sfsb = (StatefulSessionComponentInstance) interceptorContext.getPrivateData(ComponentInstance.class);
            SFSBContextHandleImpl sfsbContextHandle = new SFSBContextHandleImpl(sfsb);
            List<EntityManager> readyToClose = sfsbxpcMap.remove(sfsbContextHandle);
            if (readyToClose != null && readyToClose.size() > 0) {
                for (EntityManager entityManager : readyToClose) {
                    if (entityManager instanceof ExtendedEntityManager) {
                        // TODO:  continue iterating through remaining entity managers and chain any exceptions
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.