Package org.hornetq.core.config

Examples of org.hornetq.core.config.DiscoveryGroupConfiguration


   {
      if (cfConfig.getDiscoveryGroupName() != null)
      {
         Configuration configuration = server.getConfiguration();

         DiscoveryGroupConfiguration discoveryGroupConfiguration = null;
         discoveryGroupConfiguration = configuration.getDiscoveryGroupConfigurations()
                                                    .get(cfConfig.getDiscoveryGroupName());

         if (discoveryGroupConfiguration == null)
         {
            JMSServerManagerImpl.log.warn("There is no discovery group with name '" + cfConfig.getDiscoveryGroupName() +
                                          "' deployed.");

            throw new HornetQException(HornetQException.ILLEGAL_STATE,
                                       "There is no discovery group with name '" + cfConfig.getDiscoveryGroupName() +
                                                "' deployed.");
         }

         cfConfig.setLocalBindAddress(discoveryGroupConfiguration.getLocalBindAddress());
         cfConfig.setDiscoveryAddress(discoveryGroupConfiguration.getGroupAddress());
         cfConfig.setDiscoveryPort(discoveryGroupConfiguration.getGroupPort());
         cfConfig.setDiscoveryRefreshTimeout(discoveryGroupConfiguration.getRefreshTimeout());

      }
   }
View Full Code Here

TOP

Related Classes of org.hornetq.core.config.DiscoveryGroupConfiguration

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.