jsr345-experts@ejb-spec.java.net

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

From: Linda DeMichiel <linda.demichiel_at_oracle.com>
Date: Mon, 03 Dec 2012 19:30:53 -0800

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?
>