Commit a7f0c1b1 authored by Adrien's avatar Adrien Committed by Romain Bioteau
Browse files

fix(restart tomcat) (#910)

* It seems that the delete of the bitronix configuration file doesn't
work well (at least on my windows): The file isn't really deleted, even
if file.exists() return false. This strange behavior leads to an
AccessDeniedException when we try to open an output stream later. So,
we do not delete the file anymore, the method
works with an overwrite behavior, there is no need to delete the file.

closes [BS-17769](
parent c04d67f8
......@@ -89,9 +89,7 @@ public class DatabaseHandler {
public File createBitronixConfFile() throws IOException {
final Properties databaseProperties = readDatabaseProperties();
final File confFile = new File(getDBLocation(), "conf" + File.separator + BITRONIX_RESOURCES_PROPERTIES);
final Properties bitronixResources = new Properties();
bitronixResources.put("allowLocalTransactions", Boolean.TRUE.toString());
final BitronixDatasourceConfiguration engineDS = new BitronixDatasourceConfiguration("jdbc/bonitaDSXA");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment