activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samuel Liard (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-3407) Add ApplicationContextAware on XBeanBrokerService
Date Tue, 19 Jul 2011 09:11:57 GMT
Add ApplicationContextAware on XBeanBrokerService
-------------------------------------------------

                 Key: AMQ-3407
                 URL: https://issues.apache.org/jira/browse/AMQ-3407
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Broker
    Affects Versions: 5.5.0
         Environment: All Environment
            Reporter: Samuel Liard


Today to have spring context set on BeanService we need to define :
<bean id="springContext" class="org.apache.activemq.spring.SpringBrokerContext" />

And add parameter brokerContext="#springContext" on broker.

This can be automatic if you implement ApplicationContextAware on XBeanBrokerService and add
:
    public void setApplicationContext(ApplicationContext context) throws BeansException {
        SpringBrokerContext springBrokerContext = new SpringBrokerContext();
        springBrokerContext.setApplicationContext(context);
        setBrokerContext(springBrokerContext);    
    }

Thx

Samuel

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message