Package org.omg.PortableInterceptor

Examples of org.omg.PortableInterceptor.ForwardRequest


            }

            if (throwForwardRequest == CLIENTC_SEND_REQ && ! forwardRequestThrown)
            {
                forwardRequestThrown = true;
                throw new ForwardRequest (remoteServerObj);
            }

            // request information.
            ri.request_id();
View Full Code Here


            callsMade = callsMade | CLIENTC_RECEIVE_EXCEPTION;

            if (throwForwardRequest == CLIENTC_RECEIVE_EXCEPTION && ! forwardRequestThrown)
            {
                forwardRequestThrown = true;
                throw new ForwardRequest (remoteServerObj);
            }

            if ( ri.received_exception_id().equals (org.omg.CORBA.UNKNOWNHelper.id())
                 && throwException == CLIENTC_RECEIVE_EXCEPTION)
            {
View Full Code Here

            {
               GSLoadBalancerImpl.service = null;
            }
            else
            {
               throw new ForwardRequest(GSLoadBalancerImpl.service);
            }
         }
      }
      catch(ForwardRequest fr)
      {
View Full Code Here

    @Override
    public void receive_exception(ClientRequestInfo ri) throws ForwardRequest
    {
        if (ri.received_exception_id().equals(NO_PERMISSIONHelper.id()))
        {
            throw new ForwardRequest(ri.target());
        }
    }
View Full Code Here

           }
           catch (InterruptedException ie)
           {
           }

           throw new ForwardRequest (TestConfig.fwd);
       }
       else if (TestConfig.fwdReqPoint == TestConfig.CALL_AT_SEND_REQ && !forwardCallMade)
       {
          forwardCallMade = true;
View Full Code Here

           forwardRequestThrown = true;

           /* Just throw the ForwardRequest as the sleep will have taken place on
            * the server side
            */
           throw new ForwardRequest (TestConfig.fwd);
       }
   }
View Full Code Here

           }
           catch (InterruptedException ie)
           {
           }

           throw new ForwardRequest (TestConfig.fwd);
       }
       else if (TestConfig.fwdReqPoint == TestConfig.CALL_AT_REC_EX && !forwardCallMade)
       {
          forwardCallMade = true;
View Full Code Here

                if (! grid._is_equivalent(ri.effective_target()))
                {
                    System.out.println("Interceptor: Throwing ForwardRequest");

                    // setting in_loop not back, since the forward is permanent
                    throw new ForwardRequest( grid );
                }
                else
                {
                    System.out.println("Interceptor: target is ok");
                    in_loop = false;
View Full Code Here

           * the Process Id and pass it to the data of the service context
           */
          RCobjectId = extractObjectId(objectIdString).getBytes();
          RCctx = new ServiceContext(RecoveryContextId, RCobjectId);
          in_loop = false;
          throw new ForwardRequest( reco );
      }
        else
      {
          in_loop = false;
      }
View Full Code Here

           * the Process Id and pass it to the data of the service context
           */
          RCobjectId = extractObjectId(objectIdString).getBytes();
          RCctx = new ServiceContext(RecoveryContextId, RCobjectId);
          in_loop = false;
          throw new ForwardRequest( reco );
      }
        else
      {
          in_loop = false;
      }
View Full Code Here

TOP

Related Classes of org.omg.PortableInterceptor.ForwardRequest

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.