troubleshooting Question

Accessing JBoss Portal (Hypersonic) Database table.

Avatar of yarabati
yarabatiFlag for India asked on
Application ServersJava App ServersJava EE
2 Comments1 Solution1915 ViewsLast Modified:
hi experts,

We are using jboss 4.3.0 with default database i.e., hsql.

We are interested in accessing hypersonic (JBoss) Specific tables (JBM_USER). This table is being used by JBoss internally for managing users.
To achieve one of the functionality related to this table, we would like to access/add row(s) in this table. When we do that from java class we see below error-

ERROR [STDERR] java.sql.SQLException: The database is already in use by another process: org.hsqldb
.persist.NIOLockFile@c33ce846[file =$jboss_home\jboss-as\bin\${jboss.server.data.dir}${\}hypersonic${\}
localDB.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception:  java.io.IOException: The p
rocess cannot access the file because another process has locked a portion of the file :
$jboss_home\jboss-as\bin\${jboss.server.data.dir}${\}hypersonic${\}localDB.lck


It seems JBoss has locked this table when server has been started, and release this lock when server goes down. But we are interested in acquiring some rights in between the process.

Please can any one add some thoughts to achieve this?

Thanks in advance for your help.
Cheers,
Yarabati
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 2 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros