-
Bug
-
Resolution: Done
-
Major
-
2.0.0.GA
When user sets link name this way, link name is set correctly:
void on_container_start(proton::container& c) override { connection_options conn_opts; /* setting some connection options */ source_options src_opts; /* setting some source options */ receiver_options recv_opts; /* setting some receiver options */ recv_opts.name("link_name"); // setting link name to receiver options recv_opts.source(src_opts); // setting source options to receiver options connection conn = c.connect(broker_url, conn_opts); // connecting client from container receiver recv = conn.open_receiver(addr, recv_options); // opening receiver from connection cout << recv.name() << endl; // prints "link_name" }
When user sets link name like this, link name disappears:
void on_container_start(proton::container& c) override { connection_options conn_opts; /* setting some connection options */ source_options src_opts; /* setting some source options */ receiver_options recv_opts; /* setting some receiver options */ recv_opts.name("link_name"); // setting link name to receiver options recv_opts.source(src_opts); // setting source options to receiver options receiver recv = c.open_receiver(broker_url, recv_options, conn_opts); // opening receiver from container cout << recv.name() << endl; // prints UUID in format "8-4-4-4-12" }
- relates to
-
PROTON-1821 Loading...