Examples of AddressSettings


Examples of org.hornetq.core.settings.impl.AddressSettings

         ClientSessionFactory sf = locator.createSessionFactory();

         SimpleString ADDRESS_DLA = LargeMessageTest.ADDRESS.concat("-dla");
         SimpleString ADDRESS_EXPIRY = LargeMessageTest.ADDRESS.concat("-expiry");

         AddressSettings addressSettings = new AddressSettings();

         addressSettings.setDeadLetterAddress(ADDRESS_DLA);
         addressSettings.setExpiryAddress(ADDRESS_EXPIRY);
         addressSettings.setMaxDeliveryAttempts(1);

         server.getAddressSettingsRepository().addMatch("*", addressSettings);

         session = sf.createSession(false, false, false);

View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.