Package org.jboss.remoting.callback

Examples of org.jboss.remoting.callback.Callback


   {
      public void addListener(InvokerCallbackHandler callbackHandler)
      {
         try
         {
            callbackHandler.handleCallback(new Callback("callback"));
         }
         catch (HandleCallbackException e)
         {
            log.error("Unable to send callback", e);
         }
View Full Code Here


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

         {
            responseList = new ArrayList(responses.size());
            responseIterator = responses.iterator();
         }

         Callback callback = null;
         Object response = null;
         String listenerId = null;

         for (int i = 0; i < callbacks.size(); i++)
         {
            callback = (Callback) idsIterator.next();

            if (responseIterator != null)
            {
               response = responseIterator.next();
            }

            Map returnPayload = callback.getReturnPayload();

            if (returnPayload != null)
            {
               Object callbackId = returnPayload.get(ServerInvokerCallbackHandler.CALLBACK_ID);
               if (callbackId != null)
View Full Code Here

         if (CALLBACK.equals(invocation.getParameter()))
         {
            try
            {
               log.info("calling handleCallback()");
               callbackHandler.handleCallback(new Callback(CALLBACK));
               log.info("called handleCallback()");
            }
            catch (HandleCallbackException e)
            {
               log.info("error", e);
View Full Code Here

   {
      public void addListener(InvokerCallbackHandler callbackHandler)
      {
         try
         {
            callbackHandler.handleCallback(new Callback("test"));
         }
         catch (HandleCallbackException e)
         {
            e.printStackTrace();
         }
View Full Code Here

                     catch (InterruptedException e)
                     {
                        log.error("Unexpected interrupt", e);
                     }
                     log.info("sending callback: " + i);
                     callbackHandler.handleCallback(new Callback(Integer.toString(i)));
                     log.info("sent callback: " + i);
                  }
                  catch (HandleCallbackException e)
                  {
                     log.error("Callback error", e);
View Full Code Here

   {
      public void addListener(InvokerCallbackHandler callbackHandler)
      {
         try
         {
            callbackHandler.handleCallback(new Callback("callback"));
         }
         catch (HandleCallbackException e)
         {
            log.error("unable to send callback", e);
         }
View Full Code Here

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

         if(callbackContainer != null && callbackContainer.getCallbackHandler() != null)
         {
            Object[] params = param.getParameters();
           
            Callback callbackRequest = (Callback) params[0];
                                   
            Object obj = callbackContainer.getCallbackHandleObject();
           
            if (obj != null)
            {
               Map callbackHandleObject = callbackRequest.getReturnPayload();
              
               if(callbackHandleObject == null)
               {
                  callbackHandleObject = new HashMap();
               }
                             
               //We only want to add it if it is not null otherwise is a redundant operation
               callbackHandleObject.put(Callback.CALLBACK_HANDLE_OBJECT_KEY,
                                        obj);
              
               callbackRequest.setReturnPayload(callbackHandleObject);
            }
           
            InvokerCallbackHandler callbackHandler = callbackContainer.getCallbackHandler();
           
            callbackHandler.handleCallback(callbackRequest);
View Full Code Here

   {
      public void addListener(InvokerCallbackHandler callbackHandler)
      {
         try
         {
            callbackHandler.handleCallback(new Callback("callback"));
         }
         catch (HandleCallbackException e)
         {
            log.error("unable to send callback", e);
         }
View Full Code Here

TOP

Related Classes of org.jboss.remoting.callback.Callback

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.