java - Tracking database records consistently for change -
this question has reply here:
database polling using java 7 answersi have basic communication software uses database save messages entered pc1 , pc2 uses same database read these messages , vice versa. problem is, need technique can maintain checking database new messages. or need invokes method download message when new record inserted in database. @ moment utilize timer checks db every min regardless of new record beingness inserted. i'm looking more efficient way perform same task.
any suggestion welcome.
thank you
you can seek observer design pattern extending java observer. design pattern when new message notified.
i think page helpful you. interview : when utilize observer , observable
java database communication
No comments:
Post a Comment