title: How to track JTA transactions
body: <p>We have JTA transactions(Atomikos) configured using Spring annotations across different places in our application. I need to get trace logs whenever a transaction started and completed.</p>
  
  <p>For example, whenever the below method invoked within a new transaction,</p>
  
  <pre><code>@Transactional
  void createAgent() { ... }
  </code></pre>
  
  <p>I need to log a message saying</p>
  
  <pre><code>Transaction started on AgentFactory::createAgent() ...
  Transaction ended on AgentFactory::createAgent() ...
  </code></pre>
  
  <p>Can you please provide if there is any way to enable trace logging on transactions?</p>