I need to run a long running query via a stateless EJB.
statelessEjb.callLongRunningQuery();
I am using Weblogic and if the query is longer then 30 seconds it times out.
I configured the Set XA Transaction Timeout to true and XA Transaction Timeout to 900 seconds but still got timeout exception.
The only way worked was to set Timeout Seconds on JTA settings on the domain level.
Any idea why setting XA Transaction Timeout on datasource level was not ok ?
And most important : why i need a transaction using EJB when I just read data ...?
Thanks