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

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
PedroKowalski
Posts: 25
Joined: Thu Aug 04, 2011 10:36 am
Location: Poland
Contact:

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

Post 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!

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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?"
If you like our products and services, please help us by posting your review here.

user

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

Post 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!

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

ricardoespsanto
Posts: 7
Joined: Mon Dec 24, 2012 11:57 am
Contact:

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

Post by ricardoespsanto »

Looks like I'm not the only one with issues with this question :D

himaiMinh
Posts: 358
Joined: Fri Nov 29, 2013 8:26 pm
Contact:

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

Post 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.

admin
Site Admin
Posts: 10036
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin »

You are right. Putting it in interface doesn't look valid.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests