OK I've just added a test case that seems to show that the
destinations are being created lazily when a consumer is added...

http://svn.apache.org/repos/asf/incubator/activemq/trunk/activemq-core/src/test/java/org/apache/activemq/usecases/NewConsumerCreatesDestinationTest.java

I've tried to simulate the kind of code you'll be calling the virtual
topics stuff - namely using the
broker.getDestination(topicSubscriberWildcard) to find all the virtual
topic subscriber queues etc and it seems to work for me using SVN
trunk.


On 7/20/06, James Strachan <[EMAIL PROTECTED]> wrote:
On 7/19/06, bmadigan <[EMAIL PROTECTED]> wrote:
>
> Is this the change to call lookup(...) in addConsumer( )?

Yes

> Looks like its not
> being called.

Damn - sorry about that. I knew I should have taken the time to write
a test case :). Lemme see if I get chance to write a little test case
today....

> I'd like to run the broker in debug, I'm having trouble
> figuring out where exactly the lazy creation of destinations is happening.

It should be the lookup() which calls addDestination() I think. More
in a little while...

--

James
-------
http://radio.weblogs.com/0112098/



--

James
-------
http://radio.weblogs.com/0112098/

Reply via email to