Examples of wrapWithContext()


Examples of org.apache.sandesha2.context.ContextManager.wrapWithContext()

           
            // Wrap the invoker worker with the correct context, if needed.
            Runnable work = worker;
            ContextManager contextMgr = SandeshaUtil.getContextManager(context);
            if(contextMgr != null) {
              work = contextMgr.wrapWithContext(work, invoker.getContext());
            }
           
            threadPool.execute(work);
         
            //adding the workId to the lock after assigning it to a thread makes sure
View Full Code Here

Examples of org.apache.sandesha2.context.ContextManager.wrapWithContext()

       
        // Wrap the invoker worker with the correct context, if needed.
        Runnable work = worker;
        ContextManager contextMgr = SandeshaUtil.getContextManager(context);
        if(contextMgr != null) {
          work = contextMgr.wrapWithContext(work, bean.getContext());
        }
        threadPool.execute(work);
       
        //adding the workId to the lock after assigning it to a thread makes sure
        //that all the workIds in the Lock are handled by threads.
View Full Code Here

Examples of org.apache.sandesha2.context.ContextManager.wrapWithContext()

           
            // Wrap the invoker worker with the correct context, if needed.
            Runnable work = worker;
            ContextManager contextMgr = SandeshaUtil.getContextManager(ctx);
            if(contextMgr != null) {
              work = contextMgr.wrapWithContext(work, invoker.getContext());
            }
           
            // Setup the lock for the new worker
            worker.getLock().addWork(workId, worker);
            ctx.getThreadPool().execute(work);
View Full Code Here

Examples of org.apache.sandesha2.context.ContextManager.wrapWithContext()

       
        // Wrap the invoker worker with the correct context, if needed.
        Runnable work = worker;
        ContextManager contextMgr = SandeshaUtil.getContextManager(context);
        if(contextMgr != null) {
          work = contextMgr.wrapWithContext(work, bean.getContext());
        }
        try {
          // Set the lock up before we start the thread, but roll it back
          // if we hit any problems
          if(worker.getLock().addWork(workId, worker))
View Full Code Here

Examples of org.apache.sandesha2.context.ContextManager.wrapWithContext()

            };

            // Wrap the work with the correct context, if needed.
            ContextManager contextMgr = SandeshaUtil.getContextManager(configurationContext);
            if(contextMgr != null) {
              work = contextMgr.wrapWithContext(work, nextBean.getContext());
            }

            // Finally do the work
            work.run();
View Full Code Here

Examples of org.apache.sandesha2.context.ContextManager.wrapWithContext()

            nextWorker.setWorkId(workId);

            // Wrap the invoker worker with the correct context, if needed.
            ContextManager contextMgr = SandeshaUtil.getContextManager(configurationContext);
            if(contextMgr != null) {
              nextRunnable = contextMgr.wrapWithContext(nextWorker, nextBean.getContext());
            } else {
              nextRunnable = nextWorker;
            }
          }
        }
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.