Page 1 of 1

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

Posted: Thu Dec 25, 2014 6:33 am
by ramy6_1
Hello ,

Please explain why the correct answer not the third option

@EJB(name="orderRef", beanName="OrderBean")
com.enthuware.OrderBean orderBean;

?

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

Posted: Thu Dec 25, 2014 9:33 pm
by admin
Because the interface class name is com.enthuware.Order and not com.enthuware.OrderBean.

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

Posted: Tue May 19, 2015 7:13 pm
by himaiMinh
By the way, com.enthuware.Order can be the local view or the no-interface view of the bean with name defined as "OrderBean".

If we have :

Code: Select all

@Stateless
@LocalBean
public class Order { ...}
or

Code: Select all

@Local
public interface Order{ ...}
Both will work for the <local> element.