public HornetQConnection(final String username, final String password, final int connectionType, final String clientID, final int dupsOKBatchSize, final int transactionBatchSize, final ClientSessionFactory sessionFactory) { this.username = username; this.password = password; this.connectionType = connectionType; this.clientID = clientID; this.sessionFactory = sessionFactory; uid = UUIDGenerator.getInstance().generateSimpleStringUUID(); thisVersion = VersionLoader.getVersion(); this.dupsOKBatchSize = dupsOKBatchSize; this.transactionBatchSize = transactionBatchSize; creationStack = new Exception(); }
HornetQClientLogger.LOGGER.noVersionOnClasspath(getClasspathString()); throw new RuntimeException(VersionLoader.PROP_FILE_NAME + " is not available"); int minorVersion = Integer.valueOf(versionProps.getProperty("hornetq.version.minorVersion")); int microVersion = Integer.valueOf(versionProps.getProperty("hornetq.version.microVersion")); int[] incrementingVersions = parseCompatibleVersionList(versionProps.getProperty("hornetq.version.incrementingVersion")); String versionSuffix = versionProps.getProperty("hornetq.version.versionSuffix"); int[] compatibleVersionArray = parseCompatibleVersionList(versionProps.getProperty("hornetq.version.compatibleVersionList")); List<Version> definedVersions = new ArrayList<Version>(incrementingVersions.length); for (int incrementingVersion : incrementingVersions)
String versionSuffix = versionProps.getProperty("hornetq.version.versionSuffix"); String nettyVersion = versionProps.getProperty("hornetq.netty.version"); int[] compatibleVersionArray = parseCompatibleVersionList(versionProps.getProperty("hornetq.version.compatibleVersionList"));
final int ackBatchSize) throws HornetQException for (Version clientVersion : VersionLoader.getClientVersions())
public HornetQServerImpl(Configuration configuration, MBeanServer mbeanServer, final HornetQSecurityManager securityManager) { if (configuration == null) { configuration = new ConfigurationImpl(); } if (mbeanServer == null) { // Just use JVM mbean server mbeanServer = ManagementFactory.getPlatformMBeanServer(); } // We need to hard code the version information into a source file version = VersionLoader.getVersion(); this.configuration = configuration; this.mbeanServer = mbeanServer; this.securityManager = securityManager; addressSettingsRepository = new HierarchicalObjectRepository<AddressSettings>(); addressSettingsRepository.setDefault(new AddressSettings()); securityRepository = new HierarchicalObjectRepository<Set<Role>>(); securityRepository.setDefault(new HashSet<Role>()); }
public HornetQServerImpl(Configuration configuration, MBeanServer mbeanServer, final HornetQSecurityManager securityManager, final HornetQServer parentServer) { if (configuration == null) { configuration = new ConfigurationImpl(); } if (mbeanServer == null) { // Just use JVM mbean server mbeanServer = ManagementFactory.getPlatformMBeanServer(); } // We need to hard code the version information into a source file version = VersionLoader.getVersion(); this.configuration = configuration; this.mbeanServer = mbeanServer; this.securityManager = securityManager; addressSettingsRepository = new HierarchicalObjectRepository<AddressSettings>(); addressSettingsRepository.setDefault(new AddressSettings()); securityRepository = new HierarchicalObjectRepository<Set<Role>>(); securityRepository.setDefault(new HashSet<Role>()); this.parentServer = parentServer; }
if (!Version.ID.equals(VersionLoader.getVersion().getNettyVersion())) NettyConnector.log.warn("Unexpected Netty Version was expecting " + VersionLoader.getVersion() .getNettyVersion() + " using " +
if (!Version.ID.equals(VersionLoader.getVersion().getNettyVersion())) NettyAcceptor.log.warn("Unexpected Netty Version was expecting " + VersionLoader.getVersion() .getNettyVersion() + " using " +
do Version clientVersion = VersionLoader.getVersion();
VersionLoader.getVersion() .getIncrementingVersion()));
VersionLoader.getVersion() .getIncrementingVersion()));