Obtaining client port information of an EMS connection.

Obtaining client port information of an EMS connection.

book

Article ID: KB0085459

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

Resolution:
From EMS 6.0 onward, "trace_client_host" can be configured in tibemsd.conf.

trace_client_host = [hostname|address|both|both_with_port]

The both_with_port option displays the ephemeral port as well as the IP address and hostname from the host where client application is running. Port information is printed in the EMS server log (i.e when CONNECT is included in log_trace).  It can also be be obtained by the EMS Admin API (i.e., ConnectionInfo.getURL()  .)

Sample output from getURL():

admin@host 127.0.0.1:55744

Sample output from the EMS server log:

2014-08-06 14:53:18.152 [admin@host 127.0.0.1:55744]: Created consumer (connid=3, sessid=3, consid=40) on queue '$TMP$.EMS-SERVER.40F453E2A1FB3.1'

Issue/Introduction

Obtaining client port information of an EMS connection.

Additional Information

EMS User's Guide.