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

Moderator: admin

Post Reply
ramy6_1
Posts: 124
Joined: Wed Feb 12, 2014 2:44 am
Contact:

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

Post by ramy6_1 »

Hello ,

Please explain why the correct answer not the third option

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

?

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

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

Post by admin »

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.

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

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

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

Post Reply

Who is online

Users browsing this forum: No registered users and 36 guests