activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Carreira (JIRA)" <>
Subject [jira] Created: (AMQ-853) Make BrokerFactoryBean use pre-existing app context as parent
Date Mon, 31 Jul 2006 18:11:23 GMT
Make BrokerFactoryBean use pre-existing app context as parent

                 Key: AMQ-853
             Project: ActiveMQ
          Issue Type: Improvement
          Components: Broker
    Affects Versions: 4.1
            Reporter: Jason Carreira
             Fix For: 4.1

I've made a local enhancement to the BrokerFactoryBean to make it where your activeMQ XML
configuration files refer to beans configured in your Spring application context. Basically
I just made the BrokerFactoryBean implement ApplicationContextAware so the ApplicationContext
will be set, then in afterPropertiesSet() when it's creating the context for the config resource
location, it does this:

context = new ResourceXmlApplicationContext(config, applicationContext)

passing in the Spring application context as the parent application context for the ResourceXmlApplicationContext.

I did this for myself so I could use the same DataSource as the backing DataSource for JDBC

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message