Package org.jboss.jms.client.remoting

Examples of org.jboss.jms.client.remoting.MessageCallbackHandler


      else if (consumerState.getDestination().isQueue())
      {
         queueName = consumerState.getDestination().getName();
      }
     
      MessageCallbackHandler messageHandler =
         new MessageCallbackHandler(isCC, sessionState.getAcknowledgeMode(),
                                    sessionDelegate, consumerDelegate, consumerID, queueName,
                                    prefetchSize, sessionExecutor, maxDeliveries);
     
      sessionState.addCallbackHandler(messageHandler);
     
View Full Code Here


      CallbackManager newCallbackManager = ((ClientConnectionDelegate)ns.getParent().getParent().
         getDelegate()).getRemotingConnection().getCallbackManager();

      // We need to synchronize the old message callback handler using the new one

      MessageCallbackHandler handler = oldCallbackManager.unregisterHandler(oldConsumerID);
      MessageCallbackHandler newHandler = newCallbackManager.unregisterHandler(consumerID);
  
      handler.synchronizeWith(newHandler);
      newCallbackManager.registerHandler(consumerID, handler);
   }
View Full Code Here

      for (int i = toRedeliver.size() - 1; i >= 0; i--)
      {
         DeliveryInfo info = (DeliveryInfo)toRedeliver.get(i);
         MessageProxy proxy = info.getMessageProxy();       
        
         MessageCallbackHandler handler = state.getCallbackHandler(info.getConsumerId());
             
         if (handler == null)
         {
            // This is ok. The original consumer has closed, so we cancel the message
           
            //FIXME - this needs to be done atomically for all cancels
           
            cancelDelivery(del, info);
         }
         else
         {
            if (trace) { log.trace("Adding proxy back to front of buffer"); }
           
            handler.addToFrontOfBuffer(proxy);
         }                                   
      }
             
      return null
   }
View Full Code Here

TOP

Related Classes of org.jboss.jms.client.remoting.MessageCallbackHandler

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.