Oracle Weblogic Server (MOSC)

MOSC Banner

Long running query via EJB 3.0 ,JPA , Weblogic

edited Feb 5, 2015 10:55AM in Oracle Weblogic Server (MOSC)

I need to run a long running query via a stateless EJB.

<span class="pln" style="color: #000000;">statelessEjb</span><span class="pun" style="color: #000000;">.</span><span class="pln" style="color: #000000;">callLongRunningQuery</span><span class="pun" style="color: #000000;">();</span>

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 ?

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center