Package org.jboss.remoting.invocation

Examples of org.jboss.remoting.invocation.NameBasedInvocation


      return client;
   }

   protected Object makeInvocation(String method, String param) throws Throwable
   {
      return client.invoke(new NameBasedInvocation(method,
                                                   new Object[]{param},
                                                   new String[]{String.class.getName()}),
                           null);
   }
View Full Code Here


      assertEquals(param, obj);
   }

   protected void makeServerOnewayInvocation(String method, String param) throws Throwable
   {
      client.invokeOneway(new NameBasedInvocation(method,
                                                  new Object[]{param},
                                                  new String[]{String.class.getName()}),
                          null,
                          false);
View Full Code Here

   }

   protected void makeClientOnewayInvocation(String method, String param) throws Throwable
   {
      client.invokeOneway(new NameBasedInvocation(method,
                                                  new Object[]{param},
                                                  new String[]{String.class.getName()}),
                          null,
                          true);
View Full Code Here

   }

   protected Object makeClientInvocation(String method, String param) throws Throwable
   {
      Object ret = client.invoke(new NameBasedInvocation(method,
                                                         new Object[]{param},
                                                         new String[]{String.class.getName()}),
                                 null);

      return ret;
View Full Code Here

   }


   protected Object makeInvocation(String method, String param) throws Throwable
   {
      Object ret = client.invoke(new NameBasedInvocation(method,
                                                         new Object[]{param},
                                                         new String[]{String.class.getName()}),
                                 null);

      return ret;
View Full Code Here

      return transport;
   }

   private Object makeInvocation(String method, String param) throws Throwable
   {
      Object ret = client.invoke(new NameBasedInvocation(method,
                                                         new Object[]{param},
                                                         new String[]{String.class.getName()}),
                                 null);

      return ret;
View Full Code Here

//                       "foo".equals(ret));
   }

   private Object makeInvocation(String method, String param) throws Throwable
   {
      Object ret = client.invoke(new NameBasedInvocation(method,
                                                         new Object[]{param},
                                                         new String[]{String.class.getName()}),
                                 null);

      return ret;
View Full Code Here

   public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
   {
      String methodName = method.getName();
      String[] paramSig = createParamSignature(method.getParameterTypes());

      NameBasedInvocation request = new NameBasedInvocation(methodName,
                                                            args,
                                                            paramSig);
      Object response = null;

      boolean failOver = false;
View Full Code Here

   public Object invoke(InvocationRequest invocation) throws Throwable
   {
      Object request = invocation.getParameter();

      // Am expecting a NameBasedInvocation as the parameter
      NameBasedInvocation nbInvocation = (NameBasedInvocation) request;

      final String methodName = nbInvocation.getMethodName();
      Object[] params = nbInvocation.getParameters();
      String[] sig = nbInvocation.getSignature();
      final Class[] classSig = new Class[sig.length];
      for(int x = 0; x < sig.length; x++)
      {
         Class signature = getPrimitiveType(sig[x]);
         if(signature != null)
View Full Code Here

   {
      Object ret = null;

      if(param != null)
      {
         ret = client.invoke(new NameBasedInvocation(method,
                                                     new Object[]{param},
                                                     new String[]{param.getClass().getName()}),
                             null);
      }
      else
View Full Code Here

TOP

Related Classes of org.jboss.remoting.invocation.NameBasedInvocation

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.