Re: peer protocol - wait for discovery

2011-11-14 Thread Stefan Oestreicher
Hi, You can do that by simply registering a consumer for Destination advisoryTopic = AdvisorySupport.getConsumerAdvisoryTopic(dest) and send a message only after you received a first message there. Ah, I see, that should be simple enough. Thank you very much. best regards Stefan

Re: peer protocol - wait for discovery

2011-11-07 Thread Dejan Bosanac
Hi Stefan, the problem is that you send non-persistent messages to the topic and if there's no consumers on the topic (which there isn't in your case), the message is being discarded. As you suggested, the solution would be to use advisory messages to wait for a consumer on your topic, before

peer protocol - wait for discovery

2011-11-04 Thread Stefan Oestreicher
Hi, I'm working on a multi-user Swing application where it would be nice if users could be informed about updates made by others in real-time. For this application it is pretty much a convenience feature so it's not necessary for correct operation. After looking into ActiveMQ I discovered the