"Note that putting @Asynchronous annotation in the interface does not give any error on Glassfish but it is not the right place for this annotation"
I have seen a couple times on the test mention that @Asynchronous annotation can't be put in the interface. From the spec, @Asynchronous annotation can be on either the bean class or interface. Can you please double check ? Thanks.
enthuware.oce-ejbd.v6.2.409
Moderator: admin
-
- Site Admin
- Posts: 10113
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: enthuware.oce-ejbd.v6.2.409
As per Section 4.5.1 of EJB 3.1 Specification:
HTH,
Paul.
It doesn't mention interface anywhere.@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, all business methods declared on that specific class are asynchronous.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
Re: enthuware.oce-ejbd.v6.2.409
Thanks Paul for quick response. It's my fault. I am not sure how I got this spec. It's an old version. The date on the spec is 2/24/09. I just checked on the 11/5/09 11:00am version and it doesn't mention the same thing. I hope this is the most accurate one. Thanks for clarification.
Who is online
Users browsing this forum: No registered users and 1 guest