I have an application that create a statistics Object and update it through the execution. The datas stored in that object are for example the date the application encountered the last disconnection, the number of message stored in the DB, etc...
I would like another app that is capable of for example triggering some alert if some of the datas exceed a certain value. Such as sending an email if there is no data stored in the DB for more than 5 minutes.
How can I accomplish that ? I don't know how to use the same Java Object with two different applications. What are the different methods to do that and what is the best option ?