Scenario :
private readonly IConnection con开发者_如何学Gonection;
this.connection = connectionFactory.CreateConnection();
this.connection.ClientId = clientId;
The client id is used to logically identify a connection for the purposes of durable subscriptions, and can generally be ignored otherwise. Durable subscriptions allow a client to disconnect/fall over while consuming a topic, and retrieve any messages that it missed when it reconnects. To achieve this, the broker needs this client id to identify which messages are pending consumption. See http://activemq.apache.org/how-do-durable-queues-and-topics-work.html
Although if you want this sort of functionality, a better alternative exists in ActiveMQ in the form of virtual destinations.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论