Java app: Windows Service interacting with the system tray icon

Viewed 1301

I am creating a Windows Service with Java Wrapper Service and I want to interact with the user through a system tray icon.

According to the library the solution would be to create an "interactive service" but this is not recommanded by Microsoft Windows.

See https://wrapper.tanukisoftware.com/doc/english/prop-ntservice-interactive.html

and https://msdn.microsoft.com/fr-fr/library/windows/desktop/ms683502(v=vs.85).aspx

My tray icon would be the "GUI part" and the service wrapper would be the "engine part". What is the best way to communicate between these two parts?

2 Answers
Related