I have using BaseX in a canonical manner to handle the many translations used in ELR systems. I won’t get into specifics but it has been working well. I started looking into the use of a singleton database object in place of the many ClientSession objects created in the constructor of the associated classes. In a single thread the performance varied between a 2x and 5x decrease. That would be expected since the amount of i/o required to load the XML would be replaced by simply executing queries against the database. The application that is utilizing BaseX is multithreaded. Once I deployed the application in JBoss I continue to receive exceptions:

 

Exception: Unknown Query ID:

 

These class methods are “synchronized” and are being invoked via Xalan callouts from XSLT.

 

I am currently using version 7.9 from the Maven repository.

 

Is BaseX thread safe in this manner?

 

Carl R Bondeson

Systems Developer

Department of Public Health

Data Processing

410 Capitol Ave

Hartford, CT 06134

Phone: 860-509-7434

carl.bondeson@ct.gov

Description: DPH Logo - Keeping CT Healthy