On 02/07/18 13:02, Robbie Gemmell wrote:
On 2 July 2018 at 12:47, Gordon Sim <g...@redhat.com> wrote:
On 02/07/18 12:33, akabhishek1 wrote:
Conclusion - It seems, we definitely need to have one active
producer/consumer

Requirement - Need to create producer on demand.



Could you please suggest best approach to handle this scenario.


I don't understand your question. Presumably you know what you want to be
sending or receiving or there is no need to be connected. If the issue is
that you may send to different addresses you can pass null for the
destination when creating the producer then set the destination per-message.
(Not sure if that has any impact on the idle policy for servicebus as you
describe above).


I dont think ServiceBus advertises support for ANONYMOUS-RELAY, so the
JMS client wont use an an anonymous terminus link, and will fall back
to opening and closing links for messages sent with the producer
object in that case, which wouldnt give the desired effect I think you
had in mind.

Ah, ok, sorry for misinformation then! One simple option would be to create some sort of 'dummy' or 'control' address and have the client always subscribe to that.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to