This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes A session bean class must not have a superclass that is itself a session bean class. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "A session bean class must not have a superclass that is itself a session bean class." Watch "A session bean class must not have a superclass that is itself a session bean class." New topic
Author

A session bean class must not have a superclass that is itself a session bean class.

Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
EJB Core Specification 4.6.2:
A session bean class must not have a superclass that is itself a session bean class.

I tested

Result:
Works fine:
23:37:32,312 INFO [STDOUT] Adding bid. bidder ID=20091297,item id=22 , bid amount=200.0
What is the specification trying to convey?


SCJP, SCWCD, SCBCD
Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
Can someone please take time and respond this question.
Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
Deepak,

Sorry for the delayed response...I have been on vacation.

The implemention you are using appears to be non-compliant.

Best regards,
Reza


Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
Deepak Jain
Ranch Hand

Joined: Aug 05, 2006
Posts: 637
This is third time in a row now.
Looks like one must not use jboss-4.2.3.GA.
The code was deployed with jboss-4.2.3.GA application server.
Please suggest a better application server which is completely compliant with ejb 3.0 specification.

Reza Rahman
author
Ranch Hand

Joined: Feb 01, 2005
Posts: 580
    
    5
Deepak,

Please see my response to one of the similar posts from you.

Best regards,
Reza
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: A session bean class must not have a superclass that is itself a session bean class.
 
Similar Threads
Need Help while running stateless session bean with Servelet bean client
Session beans must not be final doubt.
hoq to make EJB interface using Netbeans
Business method names must not start with "ejb".
Multiple postconstruct and predestroy methods.