Package org.jboss.remoting.callback

Examples of org.jboss.remoting.callback.InvokerCallbackHandler.handleCallback()


      }
      else if(methodName.equals("handleCallback"))
      {
         // got a callback from remote server
         InvokerCallbackHandler clientHandler = (InvokerCallbackHandler) clientListeners.get(sessionId);
         clientHandler.handleCallback(new Callback(invocation.getParameter()));
      }
      else if(methodName.equals("testException") || methodName.equals("testThrowException"))
      {
         throw new Exception("Got call from client to throw exception.  This is expected.");
      }
View Full Code Here


         {
            try
            {
               InvokerCallbackHandler handler = (InvokerCallbackHandler) itr.next();
               Callback invocation = new Callback(param);
               handler.handleCallback(invocation);
            }
            catch(Throwable e)
            {
               e.printStackTrace();
            }
View Full Code Here

               log.debug("listeners: " + listeners);
            }
            Callback callback = new Callback("callback");
            for (int i = 0; i < callbacks; i++)
            {
               callbackHandler.handleCallback(callback);
            }
         }

         return command;
      }
View Full Code Here

               callbackRequest.setReturnPayload(callbackHandleObject);
            }
           
            InvokerCallbackHandler callbackHandler = callbackContainer.getCallbackHandler();
           
            callbackHandler.handleCallback(callbackRequest);
         }
         else
         {
            log.error("Could not find callback handler to call upon for handleCallback " +
                      "where session id equals " + sessionId);
View Full Code Here

               callbackRequest.setReturnPayload(callbackHandleObject);
            }
           
            InvokerCallbackHandler callbackHandler = callbackContainer.getCallbackHandler();
           
            callbackHandler.handleCallback(callbackRequest);
         }
         else
         {
            log.error("Could not find callback handler to call upon for handleCallback " +
                      "where session id equals " + sessionId);
View Full Code Here

         {
            Iterator it = listeners.iterator();
            while (it.hasNext())
            {
               InvokerCallbackHandler handler = (InvokerCallbackHandler) it.next();
               handler.handleCallback(new Callback("test"));
               log.info(this + " sent callback");
            }
         }
         return invocation.getParameter();
      }
View Full Code Here

                     Iterator it = callbackHandlers.iterator();
                     while (it.hasNext())
                     {
                        InvokerCallbackHandler callbackHandler = (InvokerCallbackHandler) it.next();
                        log.info("sending callback: " + ++counter);
                        callbackHandler.handleCallback(new Callback("callback"));
                     }
                     log.info("sent callback");
                  }
                  catch (HandleCallbackException e)
                  {
View Full Code Here

               callbackRequest.setReturnPayload(callbackHandleObject);
            }
           
            InvokerCallbackHandler callbackHandler = callbackContainer.getCallbackHandler();
           
            callbackHandler.handleCallback(callbackRequest);
         }
         else
         {
            log.error("Could not find callback handler to call upon for handleCallback " +
                      "where session id equals " + sessionId);
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.