activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: Discovery without multicast (like on EC2)
Date Tue, 19 Jul 2011 08:19:14 GMT
Can you create a patch and attach it to the Jira?

Regards
-- 
Dejan Bosanac - http://twitter.com/dejanb
-----------------
The experts in open source integration and messaging - http://fusesource.com
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Mon, Jul 18, 2011 at 11:53 PM, Sam2222 <samuel@net-liard.com> wrote:

> Thx I find it.
>
> I need to change org.apache.activemq.broker.TransportConnector :
> protected DiscoveryAgent createDiscoveryAgent() throws IOException {
>  if (discoveryUri != null) {
>    DiscoveryAgent agent =
> DiscoveryAgentFactory.createDiscoveryAgent(discoveryUri);
>    if( agent!=null && agent instanceof BrokerServiceAware ) {
>      ((BrokerServiceAware)agent).setBrokerService(brokerService);
>    }
>    return agent;
>  }
>  return null;
> }
>
> But Spring context is always null.
> I find the solution : add brokerContext="#springContext" in broker tag.
> But if org.apache.activemq.xbean.XBeanBrokerService implement
> org.springframework.context.ApplicationContextAware it's can be easier :).
> I try and it's work.
>
> Maybe you can add these two modifications on next version.
>
> Samuel
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/Discovery-without-multicast-like-on-EC2-tp3658967p3676610.html
> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message