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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to