I have a widely distributed java swing application that is a web service client from a JAX WebService EJB on a Glassfish 3.1.2 server.
I want to be able to distribute a String notification to all users that stays active until they have read it. The notifications only need to exist within the Swing client.
I have created a superuser web portal to enter the String data and save it to a database.
My question is:
- What is the best technology to (push)distribute this data String Notification to my clients?
- How should I arcitect the database to know if the notification has been viewed? (So I can stop showing the "New Notification" on the client)
Or if there is a reference to a guide that would work wonderfully, I couldn't find one.
- Have the client call a webservice every 10 minutes to check if there are any new notifications
- For the database create a notification table and notifications seen. Link my users table to notifications seen table. Notifications seen is very basic with just 3 columns: NotificationID, UserID, TimeSeen.