Package org.jboss.ejb

Examples of org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor


   public Object invoke(final Invocation mi)
         throws Exception
   {
      // Get context
      MessageDrivenContainer mdc = (MessageDrivenContainer) container;
      InstancePool pool = mdc.getInstancePool();
      EnterpriseContext ctx = null;
      try
      {
         ctx = pool.get();
      }
View Full Code Here


      // Called out of sequence
      if (getBeforeDeliveryInvoke())
         throw new IllegalStateException("Missing afterDelivery from the previous beforeDelivery for message endpoint " + getProxyString(mi));

      // Set the classloader
      MessageDrivenContainer container = getContainer(mi);
      synchronized (this)
      {
         oldClassLoader = GetTCLAction.getContextClassLoader(inUseThread);
         SetTCLAction.setContextClassLoader(inUseThread, container.getClassLoader());
      }
      if (trace)
         log.trace("MessageEndpoint " + getProxyString(mi) + " set context classloader to " + container.getClassLoader());

      // start any transaction
      try
      {
         startTransaction("beforeDelivery", mi, container);
View Full Code Here

     
      // Mark delivery if beforeDelivery was invoked
      if (getOldClassLoader() != null)
         delivered.set(true);
    
      MessageDrivenContainer container = getContainer(mi);
      boolean commit = true;
      try
      {
         // Check for starting a transaction
         if (getOldClassLoader() == null)
View Full Code Here

    * @return the container
    */
   protected MessageDrivenContainer getContainer(Invocation mi)
   {
      JBossMessageEndpointFactory messageEndpointFactory = getMessageEndpointFactory(mi);
      MessageDrivenContainer container = messageEndpointFactory.getContainer();
      if (container == null)
         throw new IllegalStateException("No container associated with message endpoint factory: " + messageEndpointFactory.getServiceName());
      return container;
   }
View Full Code Here

/*     */   }
/*     */
/*     */   protected MessageDrivenContainer getContainer(Invocation mi)
/*     */   {
/* 556 */     JBossMessageEndpointFactory messageEndpointFactory = getMessageEndpointFactory(mi);
/* 557 */     MessageDrivenContainer container = messageEndpointFactory.getContainer();
/* 558 */     if (container == null)
/* 559 */       throw new IllegalStateException("No container associated with message endpoint factory: " + messageEndpointFactory.getServiceName());
/* 560 */     return container;
/*     */   }
View Full Code Here

/*     */   {
/* 168 */     if (getBeforeDeliveryInvoke()) {
/* 169 */       throw new IllegalStateException("Missing afterDelivery from the previous beforeDelivery for message endpoint " + getProxyString(mi));
/*     */     }
/*     */
/* 172 */     MessageDrivenContainer container = getContainer(mi);
/* 173 */     synchronized (this)
/*     */     {
/* 175 */       this.oldClassLoader = GetTCLAction.getContextClassLoader(this.inUseThread);
/* 176 */       SetTCLAction.setContextClassLoader(this.inUseThread, container.getClassLoader());
/*     */     }
/* 178 */     if (this.trace) {
/* 179 */       log.trace("MessageEndpoint " + getProxyString(mi) + " set context classloader to " + container.getClassLoader());
/*     */     }
/*     */
/*     */     try
/*     */     {
/* 184 */       startTransaction("beforeDelivery", mi, container);
View Full Code Here

/*     */   }
/*     */
/*     */   public Object invoke(Invocation mi)
/*     */     throws Exception
/*     */   {
/*  81 */     MessageDrivenContainer mdc = (MessageDrivenContainer)this.container;
/*  82 */     InstancePool pool = mdc.getInstancePool();
/*  83 */     EnterpriseContext ctx = null;
/*     */     try
/*     */     {
/*  86 */       ctx = pool.get();
/*     */     }
View Full Code Here

TOP

Related Classes of org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor

Copyright © 2018 www.massapicom. 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.