本文整理汇总了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;
}