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:
- orientdb "graph" database server running on machine-1, many clients connected
- on machine-2 running orientdb java based client application
- there many web applications connecting orientdb server graph database manipulation
- 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
Post a Comment