[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-2018) Timeout method can have zero parameters

Carlo de Wolf (JIRA) jira-events at lists.jboss.org
Tue Feb 16 04:33:11 EST 2010


Timeout method can have zero parameters
---------------------------------------

                 Key: EJBTHREE-2018
                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-2018
             Project: EJB 3.0
          Issue Type: Feature Request
          Components: timerservice-mk2
            Reporter: Carlo de Wolf
            Assignee: Carlo de Wolf
             Fix For: EJB 3.1


EJB 3.1 FR 18.2.5.3:
A timeout callback method must have one of the two signatures below, where <METHOD> designates the method name[101].

void <METHOD>()

void <METHOD>(Timer timer)[102]

[101] If the bean implements the TimedObject interface, the Timeout annotation may optionally be applied to the ejbTimeout method.

[102] An earlier version of the specification required that timeout callbacks accept the Timer parameter but did not require that this parameter be listed when declared via .xml. To preserve backward compatibility, a <timeout-method> that does not include a <method-param> element for the javax.ejb.Timer parameter may be used to match either a timeout method signtaure with or without a Timer parameter. If a timer methods are overloaded, a <timeout-method> with an empty <method-params> element may be used to explicitly refer to a the no-arg timout method.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list