"Halas, Miroslav" wrote:
> 
> Trying to resolve our problem with transaction timout we came across this
> issue.
> Our transaction takes 75sec. The default transaction timeout in Jonas in
> 60sec. We are using container managed persistance with our beans with
> transaction demarcated using deployment descriptors. There is no way we know
> of how  to change this default timeout value for all transaction (only on
> per transaction basis). To get around this problem we are explicitely
> creating transaction in our client and set the transaction timeout to 300sec
I guess you set it to 3000 ? (see traces)

> (this should be plenty of time). It looks like this is the only way how to
> change the timeout value. What happens is that the transaction still
> timeouts after 60sec. This is obviously problem.
> After getting tracefile from Jonas, we can see following lines
> 
> Current.begin()
> XidImpl constructor
> new Xid = 975395151125505
> TransactionImpl.TransactionImpl(Xid xid, int timeout)
> Attach Tx to Thread
> Associate Tx to Xid:org.objectweb.jonas.jta.XidImpl@1
> TransactionImpl.setTimer(TimerEvent timer)
> Current.setTransactionTimeout(int 3000)
This looks good. Are you saying this timeout after 60 s ???

> 
> What it looks like is that the timer is started with the defaut value, when
> the transaction is constructed and the when we set the new timeout value,
> the timer is not resetted (there is no other calls to setTimer or anything
> similar). Is this a problem?
It is not possible to reset the timer of an already started transaction.
Is it what you want to do ? I'm not sure to understand very well your pb.
Anyway, I will test this carefully in the next jonas version, because a lot
of things have been changed for distributed transactions about timers.

        Philippe

-- 
Philippe Durieux  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
[EMAIL PROTECTED]  http://www-frec.bull.com
-> Download our EJBServer at http://www.bullsoft.com/ejb <-
----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to