Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Publishing and Delivering Events | Delivering Events | Obtaining the Client Identifier
Obtaining the Client Identifier
You can either hard code the client identifier of the recipient, if it is well known, or you can extract the identifier from a event that you have received from the Broker client as shown in the following example.
. . .
BrokerEvent e;
String client_id;
. . .
try {
client_id = e.getStringField("_env.pubId");
} catch (BrokerException ex) {
System.out.println("Error on getting destination ID\n"+ex);
. . .