Re: Virtual Topics (was Re: Failover topic subscribers)

2006-07-24 Thread James Strachan
Many thanks! I've added your patch to svn trunk and have got the test case working (by tweaking the wildcard slightly and adding a pause between sending the messages and asserting they are consumed). Yay! For now I've made the code add a VirtualTopicBroker by default - unless its disabled. We may

Re: Virtual Topics (was Re: Failover topic subscribers)

2006-07-19 Thread James Strachan
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 simu

Re: Virtual Topics (was Re: Failover topic subscribers)

2006-07-18 Thread bmadigan
James.Strachan wrote: > > Incidentally in the example you give, was the consumer adding a > consumer to a temporary queue? > Hmm, not intentionally, I'm not sure. I change the subscriber from a Topic type to a Queue using the new Virtual prefix. When it was a Topic, I could see the Virtual con

Re: Virtual Topics (was Re: Failover topic subscribers)

2006-07-17 Thread James Strachan
On 7/14/06, bmadigan <[EMAIL PROTECTED]> wrote: I think something will need to be done in addConsumer(...). When a consumer subscribes to a queue called ActiveMQ.Virtual.GroupName.TopicName, the Destination is not created until someone sends a message to it. I think we should fix that. I've j

Re: Virtual Topics (was Re: Failover topic subscribers)

2006-07-14 Thread James Strachan
BTW I've created a wiki page describing the idea of Virtual Topics and to give a quick brain dump of the history of this thread... http://activemq.org/site/virtual-destinations.html by all means dive in and edit the page (the edit link at the bottom of the page). On 7/14/06, James Strachan <[EM

Re: Virtual Topics (was Re: Failover topic subscribers)

2006-07-14 Thread James Strachan
BTW lets move this thread over to the dev list :) On 7/14/06, James Strachan <[EMAIL PROTECTED]> wrote: I thought I'd change the subject as really we are discussing a kind of Virtual Topics where folks can use Queues to subscribe and consume from them etc... On 7/13/06, bmadigan <[EMAIL PROTE