Women in Technology

Hear us Roar



Article:
  Using Timers in J2EE Applications
Subject:   Transaction attribute of ejbTimeout()
Date:   2009-08-28 11:29:47
From:   vasylz
Thank you for article. It is a good overview of Timers. Here is only one comment on recommended transaction attribute of ejbTimeout method.
In the first item Timer best Practices states: "Timers are meant for long-running business processes". At the same time in the last one: "RequiresNew is recommended for the ejbTimeOut method." I think it is a some kind of contradiction. If purpose of timers to run long business processes then what transaction timeout for container and for database will be recommended? Some processes can run for hours.


Thank you,
Vasyl