org.apache.activemq.ActiveMQConnectionFactory.setTrustAllPackages()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(359)

本文整理了Java中org.apache.activemq.ActiveMQConnectionFactory.setTrustAllPackages()方法的一些代码示例,展示了ActiveMQConnectionFactory.setTrustAllPackages()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ActiveMQConnectionFactory.setTrustAllPackages()方法的具体详情如下:
包路径:org.apache.activemq.ActiveMQConnectionFactory
类名称:ActiveMQConnectionFactory
方法名:setTrustAllPackages

ActiveMQConnectionFactory.setTrustAllPackages介绍

暂无

代码示例

代码示例来源:origin: spring-projects/spring-batch

@Bean
public ActiveMQConnectionFactory connectionFactory() {
  ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory();
  connectionFactory.setBrokerURL(this.brokerUrl);
  connectionFactory.setTrustAllPackages(true);
  return connectionFactory;
}

代码示例来源:origin: spring-projects/spring-batch

@Bean
public ActiveMQConnectionFactory connectionFactory() {
  ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory();
  connectionFactory.setBrokerURL(this.brokerUrl);
  connectionFactory.setTrustAllPackages(true);
  return connectionFactory;
}

代码示例来源:origin: spring-projects/spring-batch

@Bean
public ActiveMQConnectionFactory connectionFactory() {
  ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory();
  connectionFactory.setBrokerURL(this.brokerUrl);
  connectionFactory.setTrustAllPackages(true);
  return connectionFactory;
}

代码示例来源:origin: spring-projects/spring-integration

@Bean
public ActiveMQConnectionFactory jmsConnectionFactory() {
  ActiveMQConnectionFactory activeMQConnectionFactory = new ActiveMQConnectionFactory(
      "vm://localhost?broker.persistent=false");
  activeMQConnectionFactory.setTrustAllPackages(true);
  return activeMQConnectionFactory;
}

代码示例来源:origin: spring-projects/spring-integration

@Before
public void setup() {
  ActiveMqTestUtils.prepare();
  this.connectionFactory = new ActiveMQConnectionFactory();
  this.connectionFactory.setBrokerURL("vm://localhost?broker.persistent=false");
  this.connectionFactory.setTrustAllPackages(true);
}

代码示例来源:origin: spring-projects/spring-integration

@Before
public void setup() {
  ActiveMqTestUtils.prepare();
  ActiveMQConnectionFactory targetConnectionFactory = new ActiveMQConnectionFactory();
  targetConnectionFactory.setBrokerURL("vm://localhost?broker.persistent=false");
  targetConnectionFactory.setTrustAllPackages(true);
  this.connectionFactory = new CachingConnectionFactory(targetConnectionFactory);
  this.topic = new ActiveMQTopic("testTopic");
  this.queue = new ActiveMQQueue("testQueue");
}

代码示例来源:origin: spring-projects/spring-integration-java-dsl

@PostConstruct
public void init() {
  ((ActiveMQConnectionFactory) this.jmsConnectionFactory).setTrustAllPackages(true);
}

代码示例来源:origin: com.ksc.mission.base/activemq

public ConnectionFactory getConnectionFactory() {
  ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory();
  connectionFactory.setBrokerURL(address);
  connectionFactory.setTrustAllPackages(true);
  return connectionFactory;
}

代码示例来源:origin: com.cognifide.aet/communication

public void connect() throws JMSException {
 LOG.info("Connecting to broker {} on user {}", config.url(), config.username());
 final ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(config.url());
 connectionFactory.setUserName(config.username());
 connectionFactory.setPassword(config.password());
 connectionFactory.setTrustAllPackages(true);
 connection = connectionFactory.createConnection();
 connection.start();
}

代码示例来源:origin: Cognifide/aet

public void connect() throws JMSException {
 LOG.info("Connecting to broker {} on user {}", config.url(), config.username());
 final ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory(config.url());
 connectionFactory.setUserName(config.username());
 connectionFactory.setPassword(config.password());
 connectionFactory.setTrustAllPackages(true);
 connection = connectionFactory.createConnection();
 connection.start();
}

代码示例来源:origin: stackoverflow.com

public ConnectionFactory connectionFactory(){
  ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("tcp://localhost:61616");
  factory.setTrustAllPackages(true);
  return factory;

相关文章

微信公众号

最新文章

更多

ActiveMQConnectionFactory类方法