Page 1 of 1

About Question enthuware.oce-ejbd.v6.2.402 :

Posted: Mon May 09, 2011 9:02 am
by deadlock_gr
The explanation of the first answer says:
A method that is annotated with @Asynchronous must not throw any exception.
I think it should be:
A method that is annotated with @Asynchronous and returns void must not throw any exception.

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

Posted: Mon May 09, 2011 9:04 am
by deadlock_gr
Also, in last explanation:
All methods that are to be exposed in a business interface must be public. Also, a method that is annotated with @Asynchronous must not throw any exception.
it should be:
All methods that are to be exposed in a business interface must be public. Also, a method that is annotated with @Asynchronous and has return type void must not throw any exception.

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

Posted: Mon May 09, 2011 8:07 pm
by admin
You are right. Further, instead of exception, it should be application exception. The explanation has been updated.

thank you for your feedback!

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

Posted: Wed Feb 27, 2013 4:09 pm
by kezman9
Hi,
From last explanation:
All methods that are to be exposed in a business interface must be public
From Java SE Tutorial http://docs.oracle.com/javase/tutorial/ ... ceDef.html :
All methods declared in an interface are implicitly public, so the public modifier can be omitted
I thought business interfaces are just plain java interfaces, but maybe this is JEE specific behaviour that all methods must have public modifier?

Kind regards,
Jarek

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

Posted: Thu Feb 28, 2013 7:14 am
by admin
Yes, the methods in the interface are public (no need for public modifier). But the code shown is a method with body, that means it is in a class and it must be public.
In this case, interface does not really refer to java interface definition but to the business interface presented by the bean.

HTH,
Paul.