• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

session bean business interface.

 
mallika shah
Ranch Hand
Posts: 164
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
core specs :-
If bean class implements a single interface, that interface is assumed to be the business
interface of the bean. This business interface will be a local interface unless the
interface is designated as a remote business interface by use of the Remote annotation
on the bean class or interface or by means of the deployment descriptor.

Now here is a question:
public interface ManageEmployee{
void AddEmployee(Employee emp)
}
@Stateless
public class ManagerEmployeeBean implements ManagerEmployee
{
void AddEmployee(Employee emp)
{//impl}
}

Choose one:
1.ManagerEmployeeBean exposes ManagerEmployee interface as its Local Buss interface.
2.ManagerEmployeeBean does not expose ManagerEmployee as its buss interface.

right ans : 2
my ans 1.

why is 1 incorrect and 2 correct ans choice.

thanks,
mallika
 
Narendra Dhande
Ranch Hand
Posts: 951
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is any explanation is given for option 2 is right. I will also go for option 1.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic