Examples of MarshalledInvocation


Examples of org.jboss.invocation.MarshalledInvocation

/* 55 */       InvocationRequest remoteInv = (InvocationRequest)ret;
/* 56 */       Object param = remoteInv.getParameter();
/*    */
/* 58 */       if ((param instanceof MarshalledInvocation))
/*    */       {
/* 60 */         MarshalledInvocation mi = (MarshalledInvocation)param;
/* 61 */         Object txCxt = mi.getTransactionPropagationContext();
/* 62 */         if (txCxt != null)
/*    */         {
/* 64 */           TransactionPropagationContextImporter tpcImporter = TransactionPropagationContextUtil.getTPCImporter();
/* 65 */           mi.setTransaction(tpcImporter.importTransactionPropagationContext(txCxt));
/*    */         }
/*    */       }
/*    */     }
/*    */
/* 70 */     return ret;
View Full Code Here

Examples of org.jboss.invocation.MarshalledInvocation

/*     */
/*  72 */       if ((remoteInv.getParameter() instanceof Invocation))
/*     */       {
/*  74 */         Invocation inv = (Invocation)remoteInv.getParameter();
/*     */
/*  76 */         MarshalledInvocation marshInv = new MarshalledInvocation(inv);
/*     */
/*  78 */         if (inv != null)
/*     */         {
/*     */           try
/*     */           {
/*  86 */             marshInv.setTransactionPropagationContext(getTransactionPropagationContext());
/*     */           }
/*     */           catch (SystemException e)
/*     */           {
/*  90 */             log.error("Error setting transaction propagation context.", e);
/*  91 */             throw new IOException("Error setting transaction context.  Message: " + e.getMessage());
View Full Code Here

Examples of org.jboss.invocation.MarshalledInvocation

/* 76 */       InvocationRequest remoteInv = (InvocationRequest)obj;
/* 77 */       Object param = remoteInv.getParameter();
/*    */
/* 79 */       if ((param instanceof MarshalledInvocation))
/*    */       {
/* 81 */         MarshalledInvocation mi = (MarshalledInvocation)param;
/* 82 */         Object txCxt = mi.getTransactionPropagationContext();
/* 83 */         if (txCxt != null)
/*    */         {
/* 85 */           TransactionPropagationContextImporter tpcImporter = TransactionPropagationContextUtil.getTPCImporter();
/* 86 */           mi.setTransaction(tpcImporter.importTransactionPropagationContext(txCxt));
/*    */         }
/*    */       }
/*    */     }
/* 90 */     return obj;
/*    */   }
View Full Code Here

Examples of org.jboss.invocation.MarshalledInvocation

/*     */
/*  83 */       if ((remoteInv.getParameter() instanceof Invocation))
/*     */       {
/*  85 */         Invocation inv = (Invocation)remoteInv.getParameter();
/*     */
/*  87 */         MarshalledInvocation marshInv = new MarshalledInvocation(inv);
/*     */
/*  89 */         if (inv != null)
/*     */         {
/*     */           try
/*     */           {
/*  97 */             marshInv.setTransactionPropagationContext(getTransactionPropagationContext());
/*     */           }
/*     */           catch (SystemException e)
/*     */           {
/* 101 */             log.error("Error setting transaction propagation context.", e);
/* 102 */             throw new IOException("Error setting transaction context.  Message: " + e.getMessage());
View Full Code Here

Examples of org.jboss.invocation.MarshalledInvocation

/*     */   public Object invoke(Invocation invocation)
/*     */     throws Exception
/*     */   {
/* 184 */     if ((invocation instanceof MarshalledInvocation))
/*     */     {
/* 186 */       MarshalledInvocation mi = (MarshalledInvocation)invocation;
/* 187 */       mi.setMethodMap(this.marshalledInvocationMapping);
/*     */     }
/*     */
/* 190 */     Method method = invocation.getMethod();
/* 191 */     Class methodClass = method.getDeclaringClass();
/* 192 */     Object[] args = invocation.getArguments();
View Full Code Here

Examples of org.jboss.invocation.MarshalledInvocation

/*     */   {
/* 114 */     Object result = null;
/*     */
/* 116 */     if ((invocation instanceof MarshalledInvocation))
/*     */     {
/* 118 */       MarshalledInvocation mi = (MarshalledInvocation)invocation;
/* 119 */       mi.setMethodMap(this.marshalledInvocationMapping);
/*     */     }
/*     */
/* 122 */     Method targetMethod = invocation.getMethod();
/* 123 */     Class targetClass = targetMethod.getDeclaringClass();
/* 124 */     Object[] targetArguments = invocation.getArguments();
View Full Code Here

Examples of org.jboss.invocation.MarshalledInvocation

/*     */   {
/* 354 */     Naming theServer = this.namingMain.getNamingInstance();
/*     */
/* 356 */     if ((invocation instanceof MarshalledInvocation))
/*     */     {
/* 358 */       MarshalledInvocation mi = (MarshalledInvocation)invocation;
/* 359 */       mi.setMethodMap(this.marshalledInvocationMapping);
/*     */     }
/*     */
/* 362 */     Method method = invocation.getMethod();
/* 363 */     Object[] args = invocation.getArguments();
/* 364 */     Object value = null;
View Full Code Here

Examples of org.jboss.invocation.MarshalledInvocation

      // first invocation to a node or if it is a failovered call
      //
      int failoverCounter = 0;

      // We are going to go through a Remote invocation, switch to a Marshalled Invocation
      MarshalledInvocation mi = new MarshalledInvocation(invocation);        
      mi.setValue("CLUSTER_VIEW_ID", new Long(familyClusterInfo.getCurrentViewId()));
      String target = (String) getRemoteTarget(invocation);
      URL externalURL = Util.resolveURL(target);
      Exception lastException = null;
      while( externalURL != null )
      {
View Full Code Here

Examples of org.jboss.invocation.MarshalledInvocation

   public Object invoke(Invocation invocation) throws Exception
   {
      // Set the method hash to Method mapping
      if (invocation instanceof MarshalledInvocation)
      {
         MarshalledInvocation mi = (MarshalledInvocation) invocation;
         mi.setMethodMap(this.marshalledInvocationMapping);
      }
      // Invoke the Naming method via reflection
      Method method = invocation.getMethod();
      Object[] args = invocation.getArguments();
      Object value = null;
View Full Code Here

Examples of org.jboss.invocation.MarshalledInvocation

      {        
         try
         {
            if( trace )
               log.trace("Invoking on target="+target);
            MarshalledInvocation mi = new MarshalledInvocation(null, method, args, null, null, null);
            mi.setObjectName (""); //FIXME: Fake value! Bill's optimisations regarding MI make the hypothesis
                                   // that ObjectName is always here otherwise the writeExternal code of MI
                                   // "out.writeInt(payload.size() - 3);" is wrong
            HARMIResponse rsp = target.invoke(this.familyClusterInfo.getCurrentViewId (), mi);
            if (rsp.newReplicants != 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.