Hello guys! I have been reading this forum for a lot of time, and now finally registered I hope we can share knowledge,
ok this is the situation:
I am developing a system (SWT,
JDBC) for a commercial store, two computers each one has one system, same database, one system is for adding Stock and the other is for reducing stock of a particular item.
The thing is what would you guys do if you want to keep one system updated if the other makes changes to the database ?
I thought this two:
- A
thread that constantly checks for changes in database
- Use Networking so a system sends a message to the other system when necessary
I started with the second one, but i found that it is a little complicated to work with SWT at the same time (i am doing something wrong that's for sure)
And last question, wich is the appropiate way to stop a thread from executing ?
Thanks all you guys