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 EJB Core specification 4.6.6 Session Beans 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 "EJB Core specification 4.6.6 Session Beans Business Interface" Watch "EJB Core specification 4.6.6 Session Beans Business Interface" New topic
Author

EJB Core specification 4.6.6 Session Beans Business Interface

Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637


EJB Core specification 4.6.6 Session Beans Business Interface.
1) The interface must not extend the javax.ejb.EJBObject or javax.ejb.EJBLocalObject interface.
2) The throws clause should not include the java.rmi.RemoteException.

The code given violates the above two points from specification.

Can someone explain what is wrong ?
****************************************
---------------
Environment
---------------
EJB Version : 3.0
Application Server: JBOSS 4.2.3.GA
J2SE: 1.5 or 5.0
OS: Windows XP


SCJP, SCWCD, SCBCD
Amandeep Singh
Ranch Hand

Joined: Jul 17, 2008
Posts: 844
I too see, it is a clear violation as per your code presented. Can you give me page no. on book, so that i can also confirm.


SCJP 1.4, SCWCD 5, SCBCD 5, OCPJWSD 5,SCEA-1, Started Assignment Part 2
My blog- http://rkydesigns.blogspot.com
Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
Hello,
Its not from the book. My suspicion towards jboss-4.2.3.GA grew so much that i decided to test each and every point mentioned in ejb 3.0 spec.
I think the message of not using jboss-4.2.3.GA must be communicated to all guys preparing for SCBCD.

Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

JBoss is by no means a reference implementation of the spec. You should use Glassfish instead (although it appears that it's not 100% spec friendly either).


[My Blog]
All roads lead to JavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB Core specification 4.6.6 Session Beans Business Interface