Package org.jboss.aop.joinpoint

Examples of org.jboss.aop.joinpoint.InvocationResponse.addAttachment()


         else
            proxy = factory.createProxyEjb21(businessInterfaceType);

         InvocationResponse response = marshallResponse(statefulInvocation, proxy, newStatefulInvocation.getResponseContextInfo());
         if (newStatefulInvocation.getId() != null)
            response.addAttachment(StatefulConstants.NEW_ID,
                    newStatefulInvocation.getId());
         return response;
      }
      else if (unadvisedMethod.getName().equals("remove"))
      {
View Full Code Here


               // Marshall the response
               response = marshallResponse(invocation, returnValue, newSi.getResponseContextInfo());
               if (sessionId != null)
               {
                  response.addAttachment(StatefulConstants.NEW_ID, sessionId);
               }
              
//               response = marshallResponse(invocation, rtn, newSi.getResponseContextInfo());
//               if (newId != null) response.addAttachment(StatefulConstants.NEW_ID, newId);
              
View Full Code Here

         // Create a new EJB2.x Proxy
         Object proxy = proxyFactory.createProxyEjb2x((Serializable)newStatefulInvocation.getSessionId());
        
         InvocationResponse response = marshallResponse(statefulInvocation, proxy, newStatefulInvocation.getResponseContextInfo());
         if (newStatefulInvocation.getSessionId() != null)
            response.addAttachment(StatefulConstants.NEW_ID,
                    newStatefulInvocation.getSessionId());
         return response;
      }
      else if (unadvisedMethod.getName().equals("remove"))
      {
View Full Code Here

/*     */       else {
/* 728 */         proxy = factory.createProxy();
/*     */       }
/* 730 */       InvocationResponse response = marshallResponse(statefulInvocation, proxy, newStatefulInvocation.getResponseContextInfo());
/* 731 */       if (newStatefulInvocation.getId() != null) {
/* 732 */         response.addAttachment("NEW_ID", newStatefulInvocation.getId());
/*     */       }
/* 734 */       return response;
/*     */     }
/* 736 */     if (unadvisedMethod.getName().equals("remove"))
/*     */     {
View Full Code Here

/* 314 */     if (invocation.getMetaData("IS_LOCAL", "IS_LOCAL") == null) throw exception;
/*     */
/* 316 */     InvocationResponse response = new InvocationResponse();
/* 317 */     response.setContextInfo(responseContext);
/*     */
/* 319 */     response.addAttachment("IS_LOCAL_EXCEPTION", new MarshalledObjectForLocalCalls(exception));
/*     */
/* 321 */     return response;
/*     */   }
/*     */
/*     */   public static InvocationResponse marshallResponse(Invocation invocation, Object rtn, Map responseContext)
View Full Code Here

/*     */
/* 371 */           this.invokedMethod.push(new SessionContainer.InvokedMethod(this, false, unadvisedMethod));
/* 372 */           rtn = newSi.invokeNext();
/*     */
/* 374 */           response = marshallResponse(invocation, rtn, newSi.getResponseContextInfo());
/* 375 */           if (newId != null) response.addAttachment("NEW_ID", newId);
/*     */         }
/*     */       }
/*     */       catch (Throwable throwable)
/*     */       {
/*     */         long end;
View Full Code Here

      if (invocation.getMetaData(IsLocalInterceptor.IS_LOCAL,IsLocalInterceptor.IS_LOCAL) == null) throw exception;

      InvocationResponse response = new InvocationResponse();
      response.setContextInfo(responseContext);

      response.addAttachment(IsLocalInterceptor.IS_LOCAL_EXCEPTION, new MarshalledObjectForLocalCalls(exception));

      return response;
   }

   public static InvocationResponse marshallResponse(Invocation invocation, Object rtn, Map responseContext)
View Full Code Here

                
               invokedMethod.push(new InvokedMethod(false, unadvisedMethod));
               rtn = newSi.invokeNext();

               response = marshallResponse(invocation, rtn, newSi.getResponseContextInfo());
               if (newId != null) response.addAttachment(StatefulConstants.NEW_ID, newId);
            }
         }
         catch (Throwable throwable)
         {
            Throwable exception = throwable;
View Full Code Here

         else
            proxy = factory.createProxyEjb21(businessInterfaceType);

         InvocationResponse response = marshallResponse(statefulInvocation, proxy, newStatefulInvocation.getResponseContextInfo());
         if (newStatefulInvocation.getId() != null)
            response.addAttachment(StatefulConstants.NEW_ID,
                    newStatefulInvocation.getId());
         return response;
      }
      else if (unadvisedMethod.getName().equals("remove"))
      {
View Full Code Here

      if (invocation.getMetaData(IsLocalInterceptor.IS_LOCAL,IsLocalInterceptor.IS_LOCAL) == null) throw exception;

      InvocationResponse response = new InvocationResponse();
      response.setContextInfo(responseContext);

      response.addAttachment(IsLocalInterceptor.IS_LOCAL_EXCEPTION, new MarshalledObjectForLocalCalls(exception));

      return response;
   }

   public static InvocationResponse marshallResponse(Invocation invocation, Object rtn, Map responseContext)
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.