Page 1 of 1

About Question enthuware.oce-ejbd.v6. 2 .405 :

Posted: Sun Aug 07, 2011 4:32 pm
by PedroKowalski
Howdy!

I'm not sure if it asks the appropriate question.
Where all can you place @Asynchronous annotation to make a method asynchronous?
By saying that, i.e., this answer is incorrect:
at method level in the bean class as well as in the business interface.

Aren't you saying that I am not able to annotate @Asynchronous method in the interface only? Or in the interface AND bean?

Then again, if I can, maybe the question should be rephrased to something indicating that it asks for the minimal requirement of @Asynchronous annotating?

Thanks in advance!

Cheers!

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

Posted: Wed Aug 10, 2011 5:58 am
by admin
I think the question statement should change from can to must, "Where all must you place @Asynchronous annotation to make a method asynchronous?"

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

Posted: Sun Feb 03, 2013 7:49 am
by user
Hi!

I thought that we could put any @ at bean (class or method, it depends) or at the interface. The explanation says
There is no need to put @Asynchronous annotation in the interface anywhere.


Does this mean we can“t put this @ at the interface? Or we can but there's no need? The question says "Can".

Thanks!

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

Posted: Mon Feb 04, 2013 8:40 pm
by admin
You can put it at interface also. But you don't need to put it in both the places i.e. in interface as well in class.
HTH,
Paul.

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

Posted: Sat Oct 18, 2014 9:30 am
by ricardoespsanto
Looks like I'm not the only one with issues with this question :D

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

Posted: Wed May 06, 2015 5:56 pm
by himaiMinh
Hi Paul,
Based on your explanation, the last option is also correct :
at method level or class level either in the bean class or in the business interface, but not in both (the class and the interface.)
However, based on the specification 4.5.1,
@Asynchronous can be applied to a particular business method of a bean class (or superclass) or at the class level of a bean-class (or superclass). If @Asynchronous is applied at the class level....
I don't see any documentation saying @Asynchronous can be applied to any business interface.

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

Posted: Wed May 06, 2015 6:48 pm
by admin
You are right. Putting it in interface doesn't look valid.
thank you for your feedback!