Skip to content

Transaction log property not working in Spring Boot 3 #242

@gtata

Description

@gtata

Describe the bug
A clear and concise description of what the bug is.

I have Atomikos Essentials setup with Spring Boot 3. Despite specifying the logs directory in my application.yaml file as shown below, the transaction logs are still be written to current directory "./" in log file tmlog.log instead of "./transaction-logs" directory in log file tm-log.log

spring:
jta:
enabled: true
atomikos:
properties:
log-base-dir: ./transaction-logs
max-timeout: 60000
log-base-name: tm-log

To Reproduce
Steps to reproduce the behavior:

  1. What you were doing (or trying to do)
  2. What happened
  3. What you expected to happen instead
  4. What TransactionsEssentials version you are using

Setup Atomikos for XA transaction with Spring Boot properties as mentioned above. Upon Spring Boot start up, the log-base-dir should be ./transaction-logs and the log-base-name should be tm-log but it is not the case. I will paste my logs in the **Addition context ** area below.

Additional context
Add any other context about the problem here.

2025-07-20T22:07:18.364-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.oltp_max_retries = 5
2025-07-20T22:07:18.364-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.log_base_dir = ./
2025-07-20T22:07:18.364-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.tm_unique_name = 10.50.236.95.tm
2025-07-20T22:07:18.364-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.default_jta_timeout = 10000
2025-07-20T22:07:18.364-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.serial_jta_transactions = true
2025-07-20T22:07:18.365-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.allow_subtransactions = true
2025-07-20T22:07:18.365-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.log_base_name = tmlog
2025-07-20T22:07:18.365-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.oltp_retry_interval = 10000
2025-07-20T22:07:18.365-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.checkpoint_interval = 500
2025-07-20T22:07:18.365-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.jvm_id = 21436@V65559
2025-07-20T22:07:18.365-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.forget_orphaned_log_entries_delay = 86400000
2025-07-20T22:07:18.365-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.throw_on_heuristic = false
2025-07-20T22:07:18.365-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.force_shutdown_on_vm_exit = false
2025-07-20T22:07:18.366-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.enable_logging = true
2025-07-20T22:07:18.366-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.max_timeout = 300000
2025-07-20T22:07:18.366-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.recovery_delay = 10000
2025-07-20T22:07:18.366-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.logcloud_datasource_name = logCloudDS
2025-07-20T22:07:18.366-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : USING: com.atomikos.icatch.max_actives = 50
2025-07-20T22:07:18.368-04:00 INFO 21436 --- [geo-service] [ restartedMain] c.a.icatch.provider.imp.AssemblerImp : Using default (local) logging and recovery...
2025-07-20T22:07:18.371-04:00 DEBUG 21436 --- [geo-service] [ restartedMain] c.a.recovery.fs.FileSystemRepository : baseDir ./
2025-07-20T22:07:18.372-04:00 DEBUG 21436 --- [geo-service] [ restartedMain] c.a.recovery.fs.FileSystemRepository : baseName tmlog
2025-07-20T22:07:18.373-04:00 DEBUG 21436 --- [geo-service] [ restartedMain] c.a.recovery.fs.FileSystemRepository : LogFileLock com.atomikos.persistence.imp.LogFileLock@1f352ff3

I understand that this project is not intended for support - because bug reports may or may not be considered for inclusion some day (in a future release). If this is issue is important to me then I can go to https://www.atomikos.com/Main/SupportOverview and arrange a paid support subscription.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions