Hi Le lundi 29 septembre 2014, Lars-Fredrik Smedberg <[email protected]> a écrit : > Hi! > > I try to find more information on EJB Timers, Exception handling and more, > I look mostly at automatically created timers (using @Schedule and > @Schedules). > > Some question I have is: > > - I asume that a new transaction will start when the timeout method is > called? Correct? Yes > - I also understand that I could annotate the method with > @TransactionAttribute(REQUIRES or REQUIRES_NEW) but that will also always > give me a new transaction, correct? Yes > - The calendarTimer I can create using the TimerService is the same type of > timer that I can create using the @Schedule annotation, correct? Yes > - Is an intervalTimer internally just an calendarTimer? If not can I create > such a timer using @Schedule? I know i can use e.g. @Schedule(minutes = > "*/5") etc... No but still a quartz trigger > - Can I automatically create a singleActionTimer automatically or is such a > use case hard to grasp? No but in a postconstruct of a singleton with @startup > - When using automatically created timers how are the container handling > exceptions? Will the container retry? If so how many times and at what > interval? Or will it simple retry at the next timeout? Default is 0 retry IIRC > > Regards > Lars-Fredrik > > > -- > Med vänlig hälsning / Best regards > > Lars-Fredrik Smedberg > > STATEMENT OF CONFIDENTIALITY: > The information contained in this electronic message and any > attachments to this message are intended for the exclusive use of the > address(es) and may contain confidential or privileged information. If > you are not the intended recipient, please notify Lars-Fredrik Smedberg > immediately at [email protected], and destroy all copies of this > message and any attachments. >
-- Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau
