本文整理匯總了Java中org.apache.activemq.ActiveMQConnectionFactory.setClientIDPrefix方法的典型用法代碼示例。如果您正苦於以下問題:Java ActiveMQConnectionFactory.setClientIDPrefix方法的具體用法?Java ActiveMQConnectionFactory.setClientIDPrefix怎麽用?Java ActiveMQConnectionFactory.setClientIDPrefix使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.activemq.ActiveMQConnectionFactory
的用法示例。
在下文中一共展示了ActiveMQConnectionFactory.setClientIDPrefix方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: adminActiveMQConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //導入方法依賴的package包/類
@Bean
public ActiveMQConnectionFactory adminActiveMQConnectionFactory() {
String url = properties.getJms().getUrl();
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(url);
connectionFactory.setClientIDPrefix("C2MON-SERVER-CLIENT");
connectionFactory.setWatchTopicAdvisories(false);
ActiveMQPrefetchPolicy prefetchPolicy = new ActiveMQPrefetchPolicy();
prefetchPolicy.setQueuePrefetch(0);
connectionFactory.setPrefetchPolicy(prefetchPolicy);
return connectionFactory;
}
示例2: clientActiveMQConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //導入方法依賴的package包/類
@Bean
public ActiveMQConnectionFactory clientActiveMQConnectionFactory() {
String url = properties.getJms().getUrl();
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(url);
connectionFactory.setClientIDPrefix("C2MON-SERVER-CLIENT");
connectionFactory.setTrustAllPackages(true);
connectionFactory.setWatchTopicAdvisories(false);
return connectionFactory;
}
示例3: heartbeatConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //導入方法依賴的package包/類
@Bean
public ActiveMQConnectionFactory heartbeatConnectionFactory() {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(properties.getJms().getUrl());
factory.setClientIDPrefix("C2MON-SERVER-HEARTBEAT");
factory.setWatchTopicAdvisories(false);
return factory;
}
示例4: daqInConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //導入方法依賴的package包/類
@Bean
public ActiveMQConnectionFactory daqInConnectionFactory() {
String url = properties.getJms().getUrl();
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(url);
connectionFactory.setClientIDPrefix("C2MON-SERVER-DAQ-IN");
connectionFactory.setWatchTopicAdvisories(false);
return connectionFactory;
}
示例5: daqOutActiveMQConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //導入方法依賴的package包/類
@Bean
public ActiveMQConnectionFactory daqOutActiveMQConnectionFactory() {
ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(properties.getJms().getUrl());
connectionFactory.setClientIDPrefix("C2MON-DAQ-OUT");
connectionFactory.setWatchTopicAdvisories(false);
return connectionFactory;
}
示例6: activeMQConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //導入方法依賴的package包/類
@Bean
public ActiveMQConnectionFactory activeMQConnectionFactory() {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(properties.getJms().getUrl());
factory.setClientIDPrefix("C2MON-DAQ-" + properties.getName());
factory.setWatchTopicAdvisories(false);
return factory;
}
示例7: filterActiveMQConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //導入方法依賴的package包/類
@Bean
public ActiveMQConnectionFactory filterActiveMQConnectionFactory() {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(properties.getFilter().getJms().getUrl());
factory.setClientIDPrefix("C2MON_DAQ_FILTER");
factory.setWatchTopicAdvisories(false);
return factory;
}
示例8: secondActiveMQConnectionFactory
import org.apache.activemq.ActiveMQConnectionFactory; //導入方法依賴的package包/類
@Bean
public ActiveMQConnectionFactory secondActiveMQConnectionFactory() {
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory(properties.getJms().getSecondaryUrl());
factory.setClientIDPrefix("C2MON-DAQ-" + properties.getName());
factory.setWatchTopicAdvisories(false);
return factory;
}