Вопрос

I am learning how to make realtime applications in java.I am using activemq which uses stomp as a wired format to send WebSockets messages between the WebSocket server running within the ActiveMQ broker and the Web browser.

Its easy to notify the client that he/she is connected to the server but is it possible to notify a listening java server program that a client has connected to the server?.

Это было полезно?

Решение

ActiveMQ adds support for Advisory messages that are sent to connected clients which have subscribed to various advisory topics for such things as consumers or producers connecting etc. See the Advisory Support documentation.

Другие советы

You could use JMX and configure a MBean that listens to such events, e.g. JMXConnectionNotification.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top