質問

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