本文整理匯總了Java中org.apache.activemq.broker.BrokerService.disableWrapper方法的典型用法代碼示例。如果您正苦於以下問題:Java BrokerService.disableWrapper方法的具體用法?Java BrokerService.disableWrapper怎麽用?Java BrokerService.disableWrapper使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.activemq.broker.BrokerService
的用法示例。
在下文中一共展示了BrokerService.disableWrapper方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setUp
import org.apache.activemq.broker.BrokerService; //導入方法依賴的package包/類
@Override
protected void setUp() throws Exception {
BrokerService.disableWrapper = disableWrapper;
File tmpRoot = new File("./target/tmp");
tmpRoot.mkdirs();
temporaryFolder = new TemporaryFolder(tmpRoot);
temporaryFolder.create();
if (artemisBroker == null) {
artemisBroker = createArtemisBroker();
}
startBroker();
connectionFactory = createConnectionFactory();
destination = createDestination();
template = createJmsTemplate();
template.setDefaultDestination(destination);
template.setPubSubDomain(useTopic);
template.afterPropertiesSet();
}
示例2: OpenwireArtemisBaseTest
import org.apache.activemq.broker.BrokerService; //導入方法依賴的package包/類
public OpenwireArtemisBaseTest() {
File tmpRoot = new File("./target/tmp");
tmpRoot.mkdirs();
temporaryFolder = new TemporaryFolder(tmpRoot);
//The wrapper stuff will automatically create a default
//server on a normal connection factory, which will
//cause problems with clustering tests, which starts
//all servers explicitly. Setting this to true
//can prevent the auto-creation from happening.
BrokerService.disableWrapper = true;
}
示例3: doConnect
import org.apache.activemq.broker.BrokerService; //導入方法依賴的package包/類
@Override
public Transport doConnect(URI location) throws Exception {
//here check broker, if no broker, we start one
Map<String, String> params = URISupport.parseParameters(location);
String brokerId = params.remove("invmBrokerId");
boolean autoCreate = true;
String create = params.remove("create");
if (create != null) {
autoCreate = "true".equals(create);
}
URI location1 = URISupport.createRemainingURI(location, Collections.EMPTY_MAP);
LOG.info("deciding whether starting an internal broker: " + brokerService + " flag: " + BrokerService.disableWrapper);
if (autoCreate && brokerService == null && !BrokerService.disableWrapper && BrokerService.checkPort(location1.getPort())) {
LOG.info("starting internal broker: " + location1);
ArtemisBrokerHelper.startArtemisBroker(location1);
brokerService = new InternalServiceInfo(location.toString());
if (brokerId != null) {
BrokerRegistry.getInstance().bind(brokerId, ArtemisBrokerHelper.getBroker());
LOG.info("bound: " + brokerId);
}
}
//remove unused invm parameters
params.remove("broker.persistent");
params.remove("broker.useJmx");
params.remove("marshal");
params.remove("create");
params.remove("asyncQueueDepth");
URI location2 = URISupport.createRemainingURI(location, params);
return super.doConnect(location2);
}
示例4: setUp
import org.apache.activemq.broker.BrokerService; //導入方法依賴的package包/類
@Override
protected void setUp() throws Exception {
BrokerService.disableWrapper = true;
System.setProperty("javax.net.ssl.trustStore", TRUST_KEYSTORE);
System.setProperty("javax.net.ssl.trustStorePassword", PASSWORD);
System.setProperty("javax.net.ssl.trustStoreType", KEYSTORE_TYPE);
System.setProperty("javax.net.ssl.keyStore", SERVER_KEYSTORE);
System.setProperty("javax.net.ssl.keyStorePassword", PASSWORD);
System.setProperty("javax.net.ssl.keyStoreType", KEYSTORE_TYPE);
//System.setProperty("javax.net.debug", "ssl,handshake,data,trustmanager");
maxWait = 10000;
super.setUp();
}
示例5: setUp
import org.apache.activemq.broker.BrokerService; //導入方法依賴的package包/類
@Before
public void setUp() throws Exception {
BrokerService.disableWrapper = true;
broker = BrokerFactory.createBroker(new URI(BROKER_URL));
broker.start();
broker.waitUntilStarted();
}
示例6: tearDown
import org.apache.activemq.broker.BrokerService; //導入方法依賴的package包/類
@After
public void tearDown() throws Exception {
BrokerService.disableWrapper = false;
broker.stop();
broker.waitUntilStopped();
broker = null;
}
示例7: tearDown
import org.apache.activemq.broker.BrokerService; //導入方法依賴的package包/類
@Override
protected void tearDown() throws Exception {
BrokerService.disableWrapper = false;
connection.close();
super.tearDown();
}
示例8: setUp
import org.apache.activemq.broker.BrokerService; //導入方法依賴的package包/類
@Override
public void setUp() throws Exception {
BrokerService.disableWrapper = true;
}
示例9: tearDown
import org.apache.activemq.broker.BrokerService; //導入方法依賴的package包/類
@Override
public void tearDown() {
ArtemisBrokerHelper.stopArtemisBroker();
BrokerService.disableWrapper = false;
}