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
(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)

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?

Miroslav Halas
Software Engineer
Compuware Corp.
15305 Dallas Parkway
Suite 900
Addison, TX 75001
phone 9720-960-0960 x 1333
fax 972-960-8489

-----Original Message-----
From: Halas, Miroslav 
Sent: Thursday, March 02, 2000 4:03 PM
To: '[EMAIL PROTECTED]'; Halas, Miroslav
Cc: '[EMAIL PROTECTED]'; Bolognese Luca; Robert Krger;
[EMAIL PROTECTED]
Subject: Transaction timeout


Hi Phillipe,

we have encountered this problem one more time and now we cannot get around
so I would like to reopen this question. 
What we did so far and what doesn't work is to set our launcher (server
which starts Jonas, Jetty and RMI registry) to get UserTransaction interface
and setTransactionTimeout right after it started Jonas (using
rg.objectweb.jonas.server.Server.main(args)). We set the transaction timeout
to 300sec. Everything seems to be OK, but then when we actually run our
potentially very long transaction, it fails after ~60sec. So my question is,
did we actually set the default timeout value for all transactions (even the
future one) or just for the current one? Apparently it didn't work. Is there
any other way, how to change this default value or are we doing something
incorrectly?
The EJB 1.1 spec says in part 6.6.1 that
"The UserTransaction interface is unavailable to enterprise beans with
container-managed transaction demarcation."
so we cannot do it in the bean itself. Any other ideas? Thanks for any help.

Sincerely,
Miroslav Halas

-----Original Message-----
From: Philippe Durieux [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 11, 2000 5:58 AM
To: Halas, Miroslav
Cc: '[EMAIL PROTECTED]'; Bolognese Luca; Robert Krger;
[EMAIL PROTECTED]
Subject: Re: Jonas vs. Weblogic


"Halas, Miroslav" wrote:
> 
> We have integrated RMI version of Jonas with Jetty v 2.3.x (another free
> Java only web server)and the RMI registry into one application and the
> performance nicely improved. It is still not as fast as Weblogic, but it
is
> finally usable for our purposes. This even got us around the hardcoded
(60s)
> transaction timeout value in Jonas (I didn't get any response on  my
> question, if this will be customizable in Jonas).
> 
> Miroslav Halas
> Software Engineer
> Compuware Corp.
> 15305 Dallas Parkway
> Suite 900
> Addison, TX 75001
> phone 9720-960-0960 x 1333
> fax 972-960-8489

The transaction timeout is not configurable because you can easily change it
dynamically by using UserTransaction.setTransactionTimeout(sec)
If sec=0 you will reset it to the default value (60s)
This is part of the std JTA interface.

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".
----
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