Hello ,
Please explain why the correct answer not the third option
@EJB(name="orderRef", beanName="OrderBean")
com.enthuware.OrderBean orderBean;
?
About Question enthuware.oce-ejbd.v6.2.382 :
Moderator: admin
-
- Posts: 124
- Joined: Wed Feb 12, 2014 2:44 am
- Contact:
-
- Site Admin
- Posts: 10045
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.382 :
Because the interface class name is com.enthuware.Order and not com.enthuware.OrderBean.
If you like our products and services, please help us by posting your review here.
-
- Posts: 358
- Joined: Fri Nov 29, 2013 8:26 pm
- Contact:
Re: About Question enthuware.oce-ejbd.v6.2.382 :
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 :
or
Both will work for the <local> element.
If we have :
Code: Select all
@Stateless
@LocalBean
public class Order { ...}
Code: Select all
@Local
public interface Order{ ...}
Who is online
Users browsing this forum: No registered users and 36 guests