Saturday, 15 August 2015

Is there a Java in-process database, wich allows access from multible VMs? -



Is there a Java in-process database, wich allows access from multible VMs? -

i looking library allows run in-process database sqljet, has accessible multiple vms (on same machine) simultaneously independent database server. @ best this: create new file-system database, open connection 1 vm. if seek same thing different vm, checks if theres connection , syncs it. if there's no such thing, ideas how can run in-process database server in java? doesnt have sql, mongodb or database scheme do. of import part is, not have run seperate database engine, has accessible multiple vms.

use h2 in tcp server mode. in 1 of vms start so:

server server = server.createtcpserver(args).start();

other vm can connect using jdbc:

jdbc driver class: org.h2.driver database url: jdbc:h2:tcp://localhost/~/test

java database virtual-machine sqljet

No comments:

Post a Comment