문제

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