Package org.jboss.jms.wireformat

Examples of org.jboss.jms.wireformat.ConnectionFactoryUpdate


   {
      // TODO Should we lock the CFEndpoint now allowing new connections to come while doing this?

      List activeConnections = serverPeer.getConnectionManager().getActiveConnections();

      ConnectionFactoryUpdate message =
         new ConnectionFactoryUpdate(delegates, failoverMap);

      Callback callback = new Callback(message);

      for (Iterator i = activeConnections.iterator(); i.hasNext();)
      {
View Full Code Here


            throw new HandleCallbackException(e.getMessage(), e);
         }
      }
      else if (parameter instanceof ConnectionFactoryUpdate)
      {
         ConnectionFactoryUpdate viewChange = (ConnectionFactoryUpdate)parameter;

         if (trace) { log.trace(this + " receiving cluster view change " + viewChange); }

         if (connectionfactoryCallbackHandler != null)
         {
View Full Code Here

   public void handleMessage(Object message)
   {
      if (trace) { log.trace(this + " handling " + message); }

      ConnectionFactoryUpdate viewChange = (ConnectionFactoryUpdate)message;

      Object d = getState().getClusteredConnectionFactoryDelegate();

      if (d instanceof ClientClusteredConnectionFactoryDelegate)
      {
         ClientClusteredConnectionFactoryDelegate clusteredDelegate =
            (ClientClusteredConnectionFactoryDelegate)d;

         clusteredDelegate.updateFailoverInfo(viewChange.getDelegates(),
                                              viewChange.getFailoverMap());
      }
   }
View Full Code Here

         {
            log.warn("ConnectionFactoryUpdate was received but there is no callbackHandler set");
         }
         else
         {
            ConnectionFactoryUpdate viewChange = (ConnectionFactoryUpdate)parameter;

            if (trace) { log.trace(this + " receiving cluster view change " + viewChange); }

            connectionfactoryCallbackHandler.handleMessage(viewChange);
         }
View Full Code Here

   public void handleMessage(Object message)
   {
      if (trace) { log.trace(this + " handling " + message); }

      ConnectionFactoryUpdate viewChange = (ConnectionFactoryUpdate)message;

      ClientClusteredConnectionFactoryDelegate delegate = delegateRef.get();

      if (delegate!=null)
      {
         delegate.updateFailoverInfo(viewChange.getTopology().getDelegates(),
                                           viewChange.getTopology().getFailoverMap());
      }
   }
View Full Code Here

   {
      updateTopology(delegates, failoverMap);
      log.debug("updateClusteredClients being called!!! clientFactoriesToUpdate.size = " + handlers.size());

      ConnectionFactoryUpdate message =
         new ConnectionFactoryUpdate(uniqueName, delegates, failoverMap);

      Callback callback = new Callback(message);

      for (InvokerCallbackHandler o: handlers)
      {
View Full Code Here

   {
      updateTopology(delegates, failoverMap);
      log.debug("updateClusteredClients being called!!! clientFactoriesToUpdate.size = " + handlers.size());

      ConnectionFactoryUpdate message =
         new ConnectionFactoryUpdate(uniqueName, delegates, failoverMap);

      Callback callback = new Callback(message);

      for (InvokerCallbackHandler o: handlers)
      {
View Full Code Here

   public void handleMessage(Object message)
   {
      if (trace) { log.trace(this + " handling " + message); }

      ConnectionFactoryUpdate viewChange = (ConnectionFactoryUpdate)message;

      ClientClusteredConnectionFactoryDelegate delegate = delegateRef.get();

      if (delegate!=null)
      {
         delegate.updateFailoverInfo(viewChange.getTopology().getDelegates(),
                                           viewChange.getTopology().getFailoverMap());
      }
   }
View Full Code Here

         {
            log.warn("ConnectionFactoryUpdate was received but there is no callbackHandler set");
         }
         else
         {
            ConnectionFactoryUpdate viewChange = (ConnectionFactoryUpdate)parameter;

            if (trace) { log.trace(this + " receiving cluster view change " + viewChange); }

            connectionfactoryCallbackHandler.handleMessage(viewChange);
         }
View Full Code Here

   {
      updateTopology(delegates, failoverMap);
      log.debug("updateClusteredClients being called!!! clientFactoriesToUpdate.size = " + handlers.size());

      ConnectionFactoryUpdate message =
         new ConnectionFactoryUpdate(uniqueName, delegates, failoverMap);

      Callback callback = new Callback(message);

      for (ServerInvokerCallbackHandler o: handlers)
      {
View Full Code Here

TOP

Related Classes of org.jboss.jms.wireformat.ConnectionFactoryUpdate

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.