-
Bug
-
Resolution: Done
-
Major
-
EJB3_1 1.0.7, bom-eap5-0.1.2
-
None
-
jboss-ejb3-timeout:0.2.1
Consider the following base class:
public class Base
{
protected void onTimeout()
{ ... }}
and a EJB impl class which extends it:
@Stateless
public class Bean extends Base
{
protected void onTimeout(Timer timer)
{ // This one should *not* be picked up, based on the ejb-jar.xml }}
and the corresponding ejb-jar.xml which marks the onTimeout() method (the one in Base class without any params) as the timeout callback method:
<timeout>
<method-name>onTimeout</method-name>
<method-params>
</method-params>
</timeout>
Based on this configuration and code, the Base.onTimeout() method must be chosen as the timeout callback method, but because of the lack of information of method param types, the TimeoutMethodCallbackRequirements, incorrectly, ends up picking the Bean.onTimeout(Timer timer) method as the timeout callback method.