I'm coding a desktop app in Java I want to be used by many users on a local network db. I have a login frame.
The problem is that everytime i want to write a query i have to get a new connection.
First question is: How can i get my connection method somehow to remember the login username and password the user wrote to login so it would connect right away?
Second question is: (possibly answered if the first one is answered) Can i have a user-stamp for every record inserted, updated?
My thoughts are whether or a desktop app with a local db is able to handle many users correctly.