[jboss-user] [JBoss Seam] - Transaction.instance().setTransactionTimeout();
pdhaigh
do-not-reply at jboss.com
Wed Jan 23 07:40:35 EST 2008
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");
|
but it appears not to have any effect. Clearly I'm missing something else?
My components xml contains:
<core:init jndi-pattern="wildfrontiers/#{ejbName}/local"/>
|
| <transaction:ejb-transaction/>
is that incorrect?
any help greatly appreciated!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4122602#4122602
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4122602
More information about the jboss-user
mailing list