About Question enthuware.oce-ejbd.v6.2.558 :
Moderator: admin
-
- Posts: 10
- Joined: Thu Aug 09, 2012 1:32 am
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.558 :
Shouldn't the timeOut(Timer t) method inside InfoX be annotated with @Timeout?
Online
HTH,
Paul.
-
- Site Admin
- Posts: 10152
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.558 :
No, because as the explanation notes, InfoX's timeout is not a timout method.Misha wrote:Shouldn't the timeOut(Timer t) method inside InfoX be annotated with @Timeout?
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
-
- Posts: 6
- Joined: Mon Jun 16, 2014 9:47 am
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.558 :
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.
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.
Online
-
- Site Admin
- Posts: 10152
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.558 :
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
HTH,
Paul
If you like our products and services, please help us by posting your review here.
-
- Posts: 9
- Joined: Wed Feb 22, 2017 4:32 am
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.558 :
If the bean code (that's not showed) didn't have a @Timeout method OR implement TimedObject, then the statement:crolip wrote:The code of the stateless session bean is not showed.
Could not one of its methods have the @timeout annotation?
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! =)
-
- Posts: 31
- Joined: Sun Oct 13, 2013 1:20 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.558 :
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?
Online
-
- Site Admin
- Posts: 10152
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.558 :
please read the response just above your post.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 0 guests