0

I have a long-running REST method on a Bluemix Liberty runtime and I am getting the WTRN0006W error message because the method takes more than 120 seconds to return. However, it's a single-user app, this method is expected to take long and there's no database data to persist. So it's OK to set the timeout to N minutes in this case.

The problem is that I can' t find exactly what file and how to change the file using the Bluemix Liberty profile in order to do that (increase the timeout).

Any help is welcome.

Leo
  • 751
  • 4
  • 29

1 Answers1

0

The file to modify is server.xml. See this blog post on Custom Liberty server.xml configurations in IBM Bluemix. Then, try configuration like:

<server>
    ...
    <transaction totalTranLifetimeTimeout="5m"/>

See the Transaction Manager (transaction) topic in the Knowledge Center for other transaction configuration options.

Brett Kail
  • 33,593
  • 2
  • 85
  • 90