简体   繁体   中英

Shared Database in application and webserver

I wrote an application which uses a SQLite database, now I want to extend the apllication with a webinterface.

Since I want everything to be in one application with no need to set anything up or install something else I plan to embed Jetty in the application and then install some CGI servlet to use PHP.

The application and the website should be able to modify the database.

This is most likely not to be accomplished with SQLite.

What ideas do you have to accomplish this? Important is that everything can be integrated into one application.

确保仅通过来自JNDI的javax.sql.DataSource定义访问数据库,并且您是非常聪明的,因为双方,应用程序和WebApp都将具有相同的访问模式,技术,规则等。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM