File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Doubt on Sun Assesment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Doubt on Sun Assesment " Watch "Doubt on Sun Assesment " New topic

Doubt on Sun Assesment

Chaminda Amarasinghe
Ranch Hand

Joined: May 17, 2006
Posts: 404
Hi Folks

Here is 3rd Question of Sun's Free assessment. According to them correct answer is 2.

3. An enterprise bean packaged in an ejb-jar returns instances of a
Television class as a result for one of its business methods. The developer
has been asked to create an associated ejb-client JAR file. What files must
be placed in this ejb-client JAR for it to be valid?

1. The ejb-jar file (by inclusion or by reference)
2. The Television class (by inclusion or by reference)
3. Stubs of all enterprise classes referenced by the ejb-client
4. The DTDs and schemas of all XML messages used by the client

Can someone explain how client call the business method without business interfaces..

Goutham Pallipati

Joined: Aug 13, 2008
Posts: 20
when they say ejb-client JAR for a Bean then it is implicit that it contains all the STUB and Interfaces that are related to the EJB.

Very often in Examinations we do not have the all correct answers. if that is the case we need to chose the most appropriate one with some assumptions.
Chaminda Amarasinghe
Ranch Hand

Joined: May 17, 2006
Posts: 404
Thanks Goutham
I agree. Here's the link:
subject: Doubt on Sun Assesment
It's not a secret anymore!