All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: About Question enthuware.oce-ejbd.v6.2.621 :
PostPosted: Thu Sep 14, 2017 8:09 am 
Offline

Joined: Wed May 03, 2017 8:14 am
Posts: 3
hello,
about this point of explenation:

2. Ideally,  an interceptor method should have a throws Exception clause but not having it is also ok. This is based on the logic of overriding a method.


I don't see any superclass and then any overriding logic.

thanks in advanced

Mauro


Top
 Profile Send private message  
 
 Post subject: Re: About Question enthuware.oce-ejbd.v6.2.621 :
PostPosted: Thu Sep 14, 2017 11:56 am 
Offline
Site Admin

Joined: Fri Sep 10, 2010 9:26 pm
Posts: 6921
Yes, I am not sure what that statement means.

The specification allows an interceptor method to have a throws clause. Business method interceptor methods may throw runtime exceptions or application exceptions that are allowed in the throws clause of the business method. But the method can choose not to have it.
thank you for your feedback!
Paul.


Top
 Profile Send private message  
 
 Post subject: Re: About Question enthuware.oce-ejbd.v6.2.621 :
PostPosted: Mon Nov 20, 2017 9:04 pm 
Offline

Joined: Mon Nov 20, 2017 8:41 pm
Posts: 3
According to the question of the following link: http://enthuware.com/forum/viewtopic.php?f=4&t=2161, I believe that description is wrong.
Since it seems to be that an Interceptor for a business method must declare throws Exception, it is not ok to not declare it as stated by the explanation.
That said, I believe that the correct answer would be:
Quote:
The interceptor class will fail to deploy.


Thanks in advance.


Top
 Profile Send private message  
 
 Post subject: Re: About Question enthuware.oce-ejbd.v6.2.621 :
PostPosted: Thu Nov 23, 2017 5:50 pm 
Offline

Joined: Thu May 05, 2016 2:50 am
Posts: 8
I failed this question choosing the option "The bean class will fail to deploy."

Because the question's code has:

Code:
Bean code://
Stateless
@Interceptors ({MyAroundInterceptor.class} )

@ is missing before Stateless... Please fix the code in this question.

Tks


Top
 Profile Send private message  
 
 Post subject: Re: About Question enthuware.oce-ejbd.v6.2.621 :
PostPosted: Thu Nov 23, 2017 10:10 pm 
Offline
Site Admin

Joined: Fri Sep 10, 2010 9:26 pm
Posts: 6921
You are right. Will be fixed asap.
thank you for your feedback!
Paul.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Template made by DEVPPL/ThatBigForum