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