Package org.jboss.ejb

Examples of org.jboss.ejb.EnterpriseContext.lock()


      // set the context on the Invocation
      mi.setEnterpriseContext(ctx);
     
      // It is a new context for sure so we can lock it
      ctx.lock();
     
      // Set the current security information
      /**
       * JBAS-3976: Setting principal on the context has been moved to a separate interceptor
       */
View Full Code Here


           
            if (!ctx.isLocked())
            {
              
               //take it!
               ctx.lock();
            }
            else
            {
               if (!isCallAllowed(mi))
               {
View Full Code Here

                  throw new EJBException("Application Error: no concurrent " +
                        "calls on stateful beans");
               }
               else
               {
                  ctx.lock();
               }
            }
         }
         finally
         {
View Full Code Here

      // set the context on the Invocation
      mi.setEnterpriseContext(ctx);
     
      // It is a new context for sure so we can lock it
      ctx.lock();
     
      // Set the current security information
      /**
       * JBAS-3976: Setting principal on the context has been moved to a separate interceptor
       */
View Full Code Here

           
            if (!ctx.isLocked())
            {
              
               //take it!
               ctx.lock();
            }
            else
            {
               if (!isCallAllowed(mi))
               {
View Full Code Here

                  throw new EJBException("Application Error: no concurrent " +
                        "calls on stateful beans");
               }
               else
               {
                  ctx.lock();
               }
            }
         }
         finally
         {
View Full Code Here

/* 128 */     InstancePool pool = this.container.getInstancePool();
/* 129 */     EnterpriseContext ctx = pool.get();
/*     */
/* 132 */     mi.setEnterpriseContext(ctx);
/*     */
/* 135 */     ctx.lock();
/*     */
/* 142 */     AllowedOperationsAssociation.pushInMethodFlag(IN_EJB_HOME);
/*     */     try
/*     */     {
/* 147 */       localObject1 = getNext().invokeHome(mi);
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.