Package org.jboss.remoting.invocation

Examples of org.jboss.remoting.invocation.RemoteInvocation


   }

  
   public ArrayList list() throws RemoteConnectionException, ShuttingDownException
   {
      RemoteInvocation invocation = new RemoteInvocation("list", null);
     
      try
      {
         return (ArrayList) managerClient.invoke(invocation);
      }
View Full Code Here


     
      // Create new chat room and create Client for new chat room server.
      try
      {
         Object[] args = new Object[] {description, owner};
         RemoteInvocation invocation = new RemoteInvocation("createChat", args);
         InvokerLocator serverLocator = (InvokerLocator) managerClient.invoke(invocation);
         serverClient = new Client(serverLocator);
         serverClient.connect();
      }
      catch (Throwable e)
View Full Code Here

     
      // Join chat room and create Client for chat room server.
      try
      {
         Object[] args = new Object[] {key, newMember};
         RemoteInvocation invocation = new RemoteInvocation("join", args);
         managerClient.invoke(invocation);
         InvokerLocator serverLocator = new InvokerLocator(key);
         serverClient = new Client(serverLocator);
         serverClient.connect();
      }
View Full Code Here

         this.serverClient = serverClient;
      }
    
      public ArrayList getBackChat() throws RemoteConnectionException, ShuttingDownException
      {
         RemoteInvocation invocation = new RemoteInvocation("getBackChat", null);
        
         try
         {
            return (ArrayList) serverClient.invoke(invocation);
         }
View Full Code Here

         }
      }
     
      public ChatInfo getChatInfo() throws RemoteConnectionException, ShuttingDownException
      {
         RemoteInvocation invocation = new RemoteInvocation("getChatInfo", null);
        
         try
         {
            return (ChatInfo) serverClient.invoke(invocation);
         }
View Full Code Here

         }
      }
     
      public void leave(ChatMember member) throws RemoteConnectionException, ShuttingDownException
      {
         RemoteInvocation invocation = new RemoteInvocation("leave", new Object[] {member});
        
         try
         {
            serverClient.invoke(invocation);
         }
View Full Code Here

         }
      }
     
      public void send(ChatMessage mesg) throws RemoteConnectionException, ShuttingDownException
      {
         RemoteInvocation invocation = new RemoteInvocation("send", new Object[] {mesg});
        
         try
         {
            serverClient.invoke(invocation);
         }
View Full Code Here

      Object[] params = null;
      String[] sig = null;

      if(param instanceof RemoteInvocation)
      {
         RemoteInvocation rminvo = (RemoteInvocation) param;
         methodName = rminvo.getMethodName();
         params = rminvo.getParameters();
      }
      else
      {
         throw new Exception("Unknown invocation payload (" + param + ").  " +
                             "Should be instance of RemoteInvocation.");
View Full Code Here

      Object[] params = null;
      String[] sig = null;

      if(param instanceof RemoteInvocation)
      {
         RemoteInvocation rminvo = (RemoteInvocation) param;
         methodName = rminvo.getMethodName();
         params = rminvo.getParameters();
      }
      else
      {
         throw new Exception("Unknown invocation payload (" + param + ").  " +
                             "Should be instance of RemoteInvocation.");
View Full Code Here

   public Object invoke(InvocationRequest invocation) throws Throwable
   {
      if (!(invocation.getParameter() instanceof RemoteInvocation))
         throw new Exception("invalid request format: expecting NameBasedInvocation");
        
      RemoteInvocation request = (RemoteInvocation) invocation.getParameter();
      String methodName = request.getMethodName();
      Object[] args = request.getParameters();

      if (methodName.equals("getBackChat"))
         return getBackChat(args);
     
      if (methodName.equals("getChatInfo"))
View Full Code Here

TOP

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

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.