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

Raphaƫl Ramirez updated AMQ-1273:
---------------------------------

    Attachment: ThreadBrokerFactory.java

This request looks fixed for a J2EE compliant server, 
(https://issues.apache.org/activemq/browse/AMQ-1519) but it didn't fix the 
problem for an embedded broker in Tomcat for example.

But thank to Samuel Liard, the solution for non a J2EE servers is now given 
here : http://www.net-liard.com/blog/2009/04/activemq/

The ThreadBrokerFactoryBean.java file is found in his application sample :
http://www.net-liard.com/blog/wp-content/uploads/2009/04/activemq.zip

However, I've attached a modified version that may be directly called from a 
Spring configuration file.
You just have to add start="false" in your existing broker declaration and 
reference your broker in the brokerFactory bean declaration.

<amq:broker id="myBrokerService" start="false">
...
</amq:broker>

<bean id="brokerFactory" class="app.activemq.ThreadBrokerFactory">
        <property name="brokerService" ref="myBrokerService"/>
</bean>

> allow JDBC master/slave to startup asynchronously so that applications using 
> a slave don't block on startup
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-1273
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1273
>             Project: ActiveMQ
>          Issue Type: New Feature
>          Components: Broker
>            Reporter: James Strachan
>             Fix For: 5.4.0
>
>         Attachments: ThreadBrokerFactory.java
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to