Loading derby.war (derby servlet server) before other web applications in Tomcat

筅森魡賤 提交于 2019-12-23 02:49:12

问题


Apache Derby has an option to run its "Network Server" as a web application in a servlet container (derby.war).

The problem is then how to deploy other applications that depend on derby in the same container to load after derby loads (preferable in a Tomcat container).

From what I recall there is no way to control the order of web application initialization in Tomcat.

Has anybody gotten derby.war to work in a multiple web application environment?


回答1:


You'll probably find it easier and more reliable to run the Network Server in a separate standalone process of its own, rather than as part of the Tomcat process. It will make it easier to start, stop, control, and administer your Derby databases separately from your applications.




回答2:


I had a similar issue too, but with HSQLDB. I went to using standalone instances.



来源:https://stackoverflow.com/questions/6818643/loading-derby-war-derby-servlet-server-before-other-web-applications-in-tomcat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!