You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Samuel Liard (JIRA)" <ji...@apache.org> on 2011/07/19 11:12:59 UTC

[jira] [Updated] (AMQ-3407) Add ApplicationContextAware on XBeanBrokerService

     [ https://issues.apache.org/jira/browse/AMQ-3407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Samuel Liard updated AMQ-3407:
------------------------------

    Attachment: XBeanBrokerService.java

XBeanBrokerService implements ApplicationContextAware

> 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
>              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