简体   繁体   English

在Tomcat中的其他Web应用程序之前加载derby.war(derby servlet服务器)

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

Apache Derby has an option to run its "Network Server" as a web application in a servlet container ( derby.war ). Apache Derby可以选择将其“网络服务器”作为Web应用程序运行在servlet容器( 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). 然后的问题是如何在derby加载之后 (最好在Tomcat容器中)将依赖于derby的其他应用程序部署到同一容器中以进行加载。

From what I recall there is no way to control the order of web application initialization in Tomcat. 据我所知,无法控制Tomcat中Web应用程序初始化的顺序。

Has anybody gotten derby.war to work in a multiple web application environment? 是否有人让derby.war在多Web应用程序环境中工作?

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. 您可能会发现,在独立的独立进程中而不是在Tomcat进程中运行Network Server会更容易,更可靠。 It will make it easier to start, stop, control, and administer your Derby databases separately from your applications. 这将使与应用程序分开启动,停止,控制和管理Derby数据库变得更加容易。

I had a similar issue too, but with HSQLDB. 我也有类似的问题,但使用HSQLDB。 I went to using standalone instances. 我去使用独立实例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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