I could not find a way, through which i could set the timeout value in configuration files. I went through the javadocs for UserTransaction. The
setTransactionTimeout(int seconds) mentions that :
seconds - The value of the timeout in seconds. If the value is zero, the transaction service restores the default value.
Is there any way through which i can direct the transaction not to have a timeout value. I need this because, when setting the timeout value, i have no idea how long a query is going to run, during this transaction.
Does anyone have a solution for the same?