开发者

Install page for deploying war file in tomcat

I am trying to create an installer for my war file. To explain further, I have a GWT project that I made into a war file for deployment in tomcat but I want the program to go to an install page when it is accessed for the first time (just like with Drupal and OpenMRS). And in this install page, I would be able to indicate the database name, the database user and password and the admin details that I would be using for my war file. Also, all my database tables will be loaded once I submit this inst开发者_C百科all page. Can anyone give me tips on how to do this? Thanks


EDIT - Its a server thing, I am not exactly a Tomcat expert,but here goes. When the server loads, read the db config file, it it doesnt exist, catch the exception and redirect the user to the install page (pre created of course, depending on your front end), get the data, create the config file and save. Next time, the config file will be there, and the user wont see the install page.

(My only concern would be some Tomcat constraints that may act up in trying this solution)

You should mark this as a server question to gain attention of tomcat specialists. Also, ask here - https://serverfault.com/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜