Is there a way to get a globally unique ID for a client bus instance (MessageBus) that could be used when a client sends logging like messages to the server?
You can extract it from any message which originates from a remote:
QueueSession sess = message.getResource(QueueSession.class, Resources.Session.name());String sessionId = sess.getSessionId(); |