在 Tomcat 中的其他 Web 应用程序之前加载 derby.war(derby servlet 服务器)
Apache Derby 可以选择将其“网络服务器”作为 servlet 容器 (derby.war) 中的 Web 应用程序运行。
接下来的问题是如何在同一个容器中部署依赖于 derby 的其他应用程序,以便在 derby 加载之后加载(最好在 Tomcat 容器中)。
据我所知,Tomcat 中无法控制 Web 应用程序初始化的顺序。
有人让 derby.war 在多 Web 应用程序环境中工作吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能会发现在其自己的单独独立进程中运行网络服务器更容易、更可靠,而不是作为 Tomcat 进程的一部分。它将使您能够更轻松地独立于应用程序启动、停止、控制和管理 Derby 数据库。
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.
我也有类似的问题,但是是 HSQLDB。我开始使用独立实例。
I had a similar issue too, but with HSQLDB. I went to using standalone instances.