Examples of MarshalledObjectForLocalCalls


Examples of org.jboss.serial.io.MarshalledObjectForLocalCalls

/*     */   {
/*     */     InvocationResponse response;
/*     */     InvocationResponse response;
/* 329 */     if ((rtn != null) && (invocation.getMetaData("IS_LOCAL", "IS_LOCAL") != null))
/*     */     {
/* 331 */       response = new InvocationResponse(new MarshalledObjectForLocalCalls(rtn));
/*     */     }
/*     */     else
/*     */     {
/* 335 */       response = new InvocationResponse(rtn);
/*     */     }
View Full Code Here

Examples of org.jboss.serial.io.MarshalledObjectForLocalCalls

/*  74 */     return invocation.invokeNext();
/*     */   }
/*     */
/*     */   protected Object invokeLocal(Invocation invocation, Container container) throws Throwable
/*     */   {
/*  79 */     Invocation copy = (Invocation)new MarshalledObjectForLocalCalls(invocation).get();
/*  80 */     copy.getMetaData().addMetaData("IS_LOCAL", "IS_LOCAL", Boolean.TRUE);
/*  81 */     InvocationResponse response = ((Advisor)container).dynamicInvoke(null, copy);
/*  82 */     Map contextInfo = response.getContextInfo();
/*  83 */     if (contextInfo != null)
/*     */     {
/*  85 */       MarshalledObjectForLocalCalls wrappedException = (MarshalledObjectForLocalCalls)response.getContextInfo().get("IS_LOCAL_EXCEPTION");
/*  86 */       if (wrappedException != null)
/*     */       {
/*  88 */         throw ((Throwable)wrappedException.get());
/*     */       }
/*     */     }
/*  91 */     invocation.setResponseContextInfo(response.getContextInfo());
/*  92 */     MarshalledObjectForLocalCalls wrapped = (MarshalledObjectForLocalCalls)response.getResponse();
/*  93 */     Object rtn = null;
/*  94 */     if (wrapped != null)
/*     */     {
/*  96 */       rtn = wrapped.get();
/*     */     }
/*  98 */     return rtn;
/*     */   }
View Full Code Here

Examples of org.jboss.serial.io.MarshalledObjectForLocalCalls

      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;
   }
View Full Code Here

Examples of org.jboss.serial.io.MarshalledObjectForLocalCalls

   {
      InvocationResponse response;
      // marshall return value
      if (rtn != null && invocation.getMetaData(IsLocalInterceptor.IS_LOCAL, IsLocalInterceptor.IS_LOCAL) != null)
      {
         response = new InvocationResponse(new MarshalledObjectForLocalCalls(rtn));
      }
      else
      {
         response = new InvocationResponse(rtn);
      }
View Full Code Here

Examples of org.jboss.serial.io.MarshalledObjectForLocalCalls

      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;
   }
View Full Code Here

Examples of org.jboss.serial.io.MarshalledObjectForLocalCalls

   {
      InvocationResponse response;
      // marshall return value
      if (rtn != null && invocation.getMetaData(IsLocalInterceptor.IS_LOCAL, IsLocalInterceptor.IS_LOCAL) != null)
      {
         response = new InvocationResponse(new MarshalledObjectForLocalCalls(rtn));
      }
      else
      {
         response = new InvocationResponse(rtn);
      }
View Full Code Here

Examples of org.jboss.serial.io.MarshalledObjectForLocalCalls

      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;
   }
View Full Code Here

Examples of org.jboss.serial.io.MarshalledObjectForLocalCalls

   {
      InvocationResponse response;
      // marshall return value
      if (rtn != null && invocation.getMetaData(IsLocalInterceptor.IS_LOCAL, IsLocalInterceptor.IS_LOCAL) != null)
      {
         response = new InvocationResponse(new MarshalledObjectForLocalCalls(rtn));
      }
      else
      {
         response = new InvocationResponse(rtn);
      }
View Full Code Here

Examples of org.jboss.serial.io.MarshalledObjectForLocalCalls

      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;
   }
View Full Code Here

Examples of org.jboss.serial.io.MarshalledObjectForLocalCalls

   {
      InvocationResponse response;
      // marshall return value
      if (rtn != null && invocation.getMetaData(IsLocalInterceptor.IS_LOCAL, IsLocalInterceptor.IS_LOCAL) != null)
      {
         response = new InvocationResponse(new MarshalledObjectForLocalCalls(rtn));
      }
      else
      {
         response = new InvocationResponse(rtn);
      }
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.