What is the best way to send "messages" from PHP script to Java program in **real time**. PHP script and Java programs are both working at the same work station with OS Windows. Maybe some kind of client/server? The main feature is **real time**; that's why I don't want to use files.

PS: I'm going to send logger messages (php) and display (java) them at OS system tray tooltip.
PPS: I'm real noob in Java; it will be my first Java program. :)

Thank you.