users@glassfish.java.net

Re: Make TimerBean NOT stop on exceptions/transaction-rollback

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Mon, 23 Aug 2010 10:35:12 -0700

Hi Per,

RFE is a "Request For Emprovement", and you can file it via
https://glassfish.dev.java.net/issues/enter_bug.cgi?issue_type=ENHANCEMENT
(you need to be logged in to do it).

Try switching to bean managed transactions for the timeout bean and not
throw any exception. EJB container will ignore the outcome and schedule
the next timeout.

HTH,
-marina

Per Steffensen wrote:
> Hi
>
> Should I understand your answer as "No you cannot tell Glassfish to
> not stop calling a TimerBean that sets its transaction to rollback-only"?
>
> I could change the number of retries to something "very high", but in
> principle that is just lowering the chance that the TimerBean stops
> getting called, and not eliminating it.
>
> What is a RFE, and how do you file it? If it a "Request For Change" or
> something it will probably not help me. We are using Glassfish 2.1.1
> in (semi-)production so we will not be able to just upgrade to a newer
> version (without a lot of testing at least).
>
> Regards, Per Steffensen
>
> Marina Vatkina skrev:
>> <div class="moz-text-flowed" style="font-family: -moz-fixed">Please
>> file an RFE. For now you can try to change the number of retries to a
>> higher number.
>>
>> Best,
>> -marina
>>
>> Per Steffensen wrote:
>>> Hi
>>>
>>> I have a timerbean running in Glassfish 2.1.1. If I setRollbackOnly
>>> on the transaction associated with the TimerBean Glassfish will stop
>>> calling this TimerBean in the future. This is an ok feature, but
>>> cant you prevent it from happening. That is, can I tell Glassfish to
>>> NOT stop calling my TimerBean just because its transaction gets set
>>> to rollback from time to time? How?
>>>
>>> Regards, Per Steffensen
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>> </div>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>