I am developing a Java process for fetching performance data from SQL/Oracle/MySQL Databases for monitoring purpose.
Below are some of the questions I have.
-
Is there a better way than running a java process in background?(like windows service)
-
Whether executing SQL queries over a network will increase network traffic? If so, what is the remedy?
-
Proposed process is acting like an agent and it will insert data to specific tables from multiple sources. Will it cause dead lock and what would be better solution?
Java app can be configured as Windows services using commons-daemon
If its possible try having a client – server agent, wherein server agent runs where DB runs, which will execute queries on certain events published by client agent running remotely (over RMI / JMS).
Its just a initial thought, I hope this helps.