You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Dejan Bosanac (JIRA)" <ji...@apache.org> on 2011/07/20 10:40:58 UTC
[jira] [Resolved] (AMQ-3407) Add ApplicationContextAware on
XBeanBrokerService
[ https://issues.apache.org/jira/browse/AMQ-3407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dejan Bosanac resolved AMQ-3407.
--------------------------------
Resolution: Won't Fix
Assignee: Dejan Bosanac
This is intentionally changed to remove runtime dependency on spring. Take a look at
https://issues.apache.org/jira/browse/AMQ-2702
for more info
> 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
> Assignee: Dejan Bosanac
> Labels: Spring, XBeanBrokerService
> Attachments: XBeanBrokerService.java
>
>
> 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