graph - Are orient-DB java hooks capable of providing notifications when a record gets modifed from any client -


i have started using orientdb , 1 of useful features project hook. let me try explain setup:

  1. orientdb "graph" database server running on machine-1, many clients connected
  2. on machine-2 running orientdb java based client application
  3. there many web applications connecting orientdb server graph database manipulation
  4. on machine-2 java client, have registered hooks listen change of class records expecting whenever record (of specified class mentioned hook) modified hook imitate trigger on java client running on machine-2 in reality, getting triggers when class gets modified java client running on machine-2 (i.e. same client)

this code

graph = new orientgraph(connectionstring, "root", "hello"); odatabasedocumenttx docdbref = graph.getrawgraph(); docdbref.begin(); try {  docdbref.registerhook(new odocumenthookabstract() { ------- ------- }); docdbref.commit(); }catch (exception e) {     docdbref.rollback(); } 

is there way, can write client can notified on change in database ?

thanks in advance


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -