WebBrokerInitializerImpl.java 文件源码

java
阅读 13 收藏 0 点赞 0 评论 0

项目:hevelian-activemq 作者:
@Override
// TODO throw corresponding exceptions, not just Exception instances.
protected BrokerService createBroker(ServletContext sc) throws Exception {
    // Initialize Web environment to make Spring resolve external
    // properties.
    StandardServletEnvironment standardServletEnvironment = new ReversePropertySourcesStandardServletEnvironment();
    WebApplicationContextUtils.initServletPropertySources(standardServletEnvironment.getPropertySources(), sc);

    URI configURI = new URI(standardServletEnvironment.getProperty(BROKER_URI_PROP));

    LOG.info("Loading message broker from: " + configURI);
    return BrokerFactory.createBroker(configURI);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号