Hi all,
I'm trying to force an increase to a transaction timeout within a particular method... I'm using this:
public void doScheduledSend(@Duration Long waitBeforeStart, @IntervalDuration Long interval)
{
log.info("Processing scheduled email tasks");
try
{
Transaction.instance().setTransactionTimeout(100000);
}
catch (SystemException e1)
{
log.error("Oh dear", e1);
}
log.info("Set timeout");
<core:init jndi-pattern="wildfrontiers/#{ejbName}/local"/>
<transaction:ejb-transaction/>