I’m deploying the same Java web application multiple times in a web server. I would like to share an in-process Hypersonic database (without using sockets). The database will be updated from time-to-time.
Anyone know the best way to do this? What about shared libs (a global class-path on the server available to the web applications)? Do shared libs share static state? If so, maybe I could put a small connection factory in the shared libs.
As far as I know, there is no way to use an in-process database from multiple processes without using a dedicated server process and inter process communication (e.g. sockets).
Shared libraries do not share their states between multiple processes.