jsr345-experts@ejb-spec.java.net

[jsr345-experts] Re: Fwd: (EJB_SPEC-72) Clarify rules on use of Timer and TimerHandle

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Wed, 05 Dec 2012 11:56:30 -0800

Thank you Linda.

Experts, if I do not hear any objections to this issue and EJB_SPEC-71
(Clarify rules on Timer.cancel) in the next couple of days, I'll remove
any possible restrictions on both of them.

-marina

Linda DeMichiel wrote:
>
>
> On 12/3/2012 6:35 PM, Marina Vatkina wrote:
>> Experts,
>>
>> What should be the rules for the Timer and TimerHandle objects when
>> they are returned from a business method or passed
>> as an argument to a business method?
>>
>> Can the caller or callee (as long as it is a local call) call any
>> method on those references?
>>
>
> Yes
>
>> Can the (local) caller or callee be not an EJB to be able to call
>> those methods?
>>
>
> Yes
>
>> thanks,
>> -marina
>>
>> -------- Original Message --------
>> Subject: [JIRA] Created: (EJB_SPEC-72) Clarify rules on use of Timer
>> and TimerHandle
>> Date: Tue, 4 Dec 2012 01:11:49 +0000 (GMT+00:00)
>> From: marina vatkina (JIRA) <jira-no-reply_at_java.net>
>> To: mvatkina_at_java.net
>>
>>
>>
>> Clarify rules on use of Timer and TimerHandle
>> ---------------------------------------------
>>
>> Key: EJB_SPEC-72
>> URL: http://java.net/jira/browse/EJB_SPEC-72
>> Project: ejb-spec
>> Issue Type: Bug
>> Affects Versions: 3.2
>> Reporter: marina vatkina
>> Assignee: marina vatkina
>> Fix For: 3.2
>>
>>
>> Current spec
>> 13.2.6The Timer and TimerHandle Interfaces
>> {quote}
>> The javax.ejb.TimerHandle interface allows the Bean Provider to ...
>> {quote}
>>
>> Q: Does *the* Bean Provider match the bean that owns the timer?
>>
>> 13.4.1TimerService, Timer, and TimerHandle Interfaces
>> {quote}
>> Timer instances must not be serializable.
>> {quote}
>>
>> The above doesn't prohibit passing it through a local business or
>> local component interface (or a no-interface view).
>> Q: Can it be passed to a Web component?
>>