Yeah, the broker currently doesn't really support AlternateExchanges on Exchanges.
setAttribute() probably isnt doing anything in particular because I dont think we have ever been able to set any attributes on exchanges via the management interface (have a look at JMX) thus far. Some of the reasons we haven't done anything about it are: a) We currently have a bit of a chicken-and-egg issue with the way we store and recover exchanges that would doing make this harder than it sounds like it ought to be. We have discussed a route for fixing these issues by changing how we store certain bits of virtualhost level config to be relationships between different objects, but wont get to that until further down the line when we eventually rewrite the internal model and config storage for virtualhosts and queues/exchanges/bindings etc along the lines of what we are doing at the broker level just now. b) it has never worked and noone has ever mentioned it (until now), so it seems nobody is actually using them with the Java broker. Raising a JIRA and parking it for now seems like the way to go here to me, though we could perhaps make the broker be more informative of the fact that it isnt going to work. Robbie On 10 March 2013 12:41, Fraser Adams <[email protected]> wrote: > Hmmm, am I imagining it or is there no way yet to set the Alternate > Exchange of an Exchange in the Java broker (well via the ConfiguredObject > anyway). > > 1) Doing createExchange() on the VirtualHost and the properties Map is > ignored > 2) On the Exchange ConfiguredObject it looks like setAttribute() isn't > fully implemented getAttribute() looks like it can retrieve any > alternateExchange, but actually setting it seems missing. > 3) I can't even do it "the hacky way", I was going to grit my teeth and > get the org.apache.qpid.server.**exchange.Exchange from the > ExchangeAdapter, but the getExchange() method has package scope :-( > > Any thoughts or is that TBD and I just need to park it for now? > > Cheers, > Frase > > ------------------------------**------------------------------**--------- > To unsubscribe, e-mail: > [email protected].**org<[email protected]> > For additional commands, e-mail: [email protected] > >
