File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes session bean business interface. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "session bean business interface." Watch "session bean business interface." New topic
Author

session bean business interface.

mallika shah
Ranch Hand

Joined: May 11, 2006
Posts: 164
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

Joined: Dec 04, 2004
Posts: 950
Hi,

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

Thanks


Narendra Dhande
SCJP 1.4,SCWCD 1.4, SCBCD 5.0, SCDJWS 5.0, SCEA 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session bean business interface.