Package nexj.core.runtime

Examples of nexj.core.runtime.InvocationContext.complete()


      }
      finally
      {
         if (context != null)
         {
            context.complete(false);
         }

         ThreadContextHolder.setContext(contextSaved);
      }
   }
View Full Code Here


               {
                  m_queueClient.send(sendList);
                  sendList = null;
               }

               context.complete(true);
               context.initUnitOfWork();
            }

            if (sendList != null)
            {
View Full Code Here

            {
               m_queueClient.send(sendList);
               sendList = null;
            }

            context.complete(true);

            // Defer the timeout in the other nodes

            if (m_bDistributed)
            {
View Full Code Here

               }
            }
         }
         catch (Throwable t)
         {
            context.complete(false);

            throw t;
         }
         finally
         {
View Full Code Here

                        IOUtil.close(in);
                        in = null;
                     }
                  }

                  context.complete(true);
                  context.getMachine().cleanup();
                  context.initUnitOfWork();

                  final InvocationContext testContext = (InvocationContext)metadata
                     .getComponent("System.InvocationContext").getInstance(null);
View Full Code Here

                        }
                     }
                  }
                  finally
                  {
                     testContext.complete(false);
                     testContext.getGlobalCache().clear();
                     ThreadContextHolder.setContext(context); //context of DataLoader
                  }

                  bReady = false;
View Full Code Here

               {
                  context.cancel();
                 
                  if (((Boolean)itr.getValue()).booleanValue())
                  {
                     context.complete(false);
                  }
               }
               catch (Throwable t)
               {  // do nothing
               }
View Full Code Here

               context.getPrincipal().getName() + ((sAddress == null) ? "" : " @ " + sAddress) +
               " on channel \"" + channel.getName() + "\"");
         }

         strategy.run(context);
         context.complete(true);

         if (s_logger.isDebugEnabled())
         {
            s_logger.debug("Completed processing the " + sType + " message");
         }
View Full Code Here

         try
         {
            if (context != null)
            {
               context.complete(false);
            }
         }
         catch (Throwable t)
         {
            s_logger.error("Unable to complete the processing", t);
View Full Code Here

         assertFalse(defaultFile.exists());
         assertFalse(fragment1File.exists());
      }
      finally
      {
         context.complete(false);
         ThreadContextHolder.setContext(null);
      }
   }

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.