activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaël Ramirez (JIRA) <j...@apache.org>
Subject [jira] Updated: (AMQ-1273) allow JDBC master/slave to startup asynchronously so that applications using a slave don't block on startup
Date Thu, 18 Jun 2009 14:05:36 GMT

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


Mime
View raw message