Page 1 of 1

Re: About Question enthuware.oce-ejbd.v6.2.558 :

Posted: Thu Oct 04, 2012 3:51 am
by Misha
Shouldn't the timeOut(Timer t) method inside InfoX be annotated with @Timeout?

Re: About Question enthuware.oce-ejbd.v6.2.558 :

Posted: Fri Oct 05, 2012 5:16 pm
by admin
Misha wrote:Shouldn't the timeOut(Timer t) method inside InfoX be annotated with @Timeout?
No, because as the explanation notes, InfoX's timeout is not a timout method.

HTH,
Paul.

Re: About Question enthuware.oce-ejbd.v6.2.558 :

Posted: Fri Feb 06, 2015 4:25 am
by crolip
The code of the stateless session bean is not showed.
Could not one of its methods have the @timeout annotation?


I haven't thought that timeOut method of InfoX was a callback, I just have though that it was a normal method and that the stateless session bean would have the @timeout method.


Thank you.

Re: About Question enthuware.oce-ejbd.v6.2.558 :

Posted: Sat Feb 07, 2015 11:49 am
by admin
Yes, that is what the explanation also says. Whichever method of the stateless session bean is annotated with @Timeout, that method will be invoked. That is why none of the options are correct.

HTH,
Paul

Re: About Question enthuware.oce-ejbd.v6.2.558 :

Posted: Fri Feb 24, 2017 4:42 am
by selvehed
crolip wrote:The code of the stateless session bean is not showed.
Could not one of its methods have the @timeout annotation?
If the bean code (that's not showed) didn't have a @Timeout method OR implement TimedObject, then the statement:
Timer t = timerService.createTimer(60000, new InfoX("test"));
would fail and the container would discard the bean instance, right?
Since the question declares that "there is appropriate import and other statements" there MUST be a @Timeout or "implements TimedObject" in the hidden code, right?
Hopefully I'm starting to get the Timer-concept! =)

Re: About Question enthuware.oce-ejbd.v6.2.558 :

Posted: Mon Feb 18, 2019 3:55 pm
by henrid
Of course this question is testing for the so-called timeOut() method not being a timeout callback. But the bean is lacking a @Timeout annotation or ejbTimeout() method. How can we assume that "other statements" include this, while it may be a real test on knowing this requirement?

Re: About Question enthuware.oce-ejbd.v6.2.558 :

Posted: Mon Feb 18, 2019 10:17 pm
by admin
please read the response just above your post.