简体   繁体   English

JBoss Developer Studio(Eclipse)数据源资源管理器-断开HSQL仍然锁定

[英]JBoss Developer Studio (Eclipse) Data Source Explorer - Disconnect HSQL still locked

I have a database connection to HSQL in Eclipse via the Data Source Explorer (DSE). 我通过数据源资源管理器(DSE)与Eclipse中的HSQL建立数据库连接。 I can browse the existing HSQL database just fine, and then I disconnect and start a web app that uses the same database. 我可以很好地浏览现有的HSQL数据库,然后断开连接并启动使用同一数据库的Web应用程序。 After disconnecting, my web app won't start unless I restart Eclipse because it says the HSQL database is locked. 断开连接后,除非重新启动Eclipse,否则Web应用程序将无法启动,因为它说HSQL数据库已锁定。

If I start Eclipse and run my web app then it works fine. 如果我启动Eclipse并运行我的Web应用程序,那么它将正常工作。

What it looks like is that when I disconnect hte Eclipse DSE it does not actually release the lock properly. 看起来是这样的:当我断开Eclipse DSE的连接时,它实际上没有正确释放锁定。

Any ideas? 有任何想法吗?

For anyone who is still looking for an answer: 对于仍在寻找答案的任何人:

HSQLDB lock file is not released from Eclipse Data source explorer when you disconnect, when you connect to file based URL. 当断开连接,连接到基于文件的URL时,不会从Eclipse Data Source Explorer中释放HSQLDB锁定文件。 To release the lock, execute SHUTDOWN command on the DB (eg by opening SQL Scrapbook against the connection and executing SHUTDOWN as an SQL statement) and then disconnect. 要释放锁,请在数据库上执行SHUTDOWN命令(例如,通过针对连接打开SQL Scrapbook并将SHUTDOWN作为SQL语句执行),然后断开连接。 Also, this command could even be executed by starting a new session from the data source explorer itself, if you have disconnected before executing the shutdown command. 另外,如果您在执行shutdown命令之前已断开连接,甚至可以通过从数据源资源管理器本身启动新会话来执行该命令。

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

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