The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes MDB's superclass as MDB - allowed or not? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "MDB Watch "MDB New topic
Author

MDB's superclass as MDB - allowed or not?

Piotr Nowicki
Ranch Hand

Joined: Jul 13, 2010
Posts: 608

Howdy Ranchers!

Quick question - can a MDB have a superclass which is another MDB? I'm a bit confused after reading this:

EJB 3.1 spec, p. 151, 5.6.2 wrote:A message-driven bean class must not have a superclass that is itself a message-driven bean class.

EJB 3.1 spec, p. 151, 5.6.3 wrote:A message-driven bean class is permitted to have superclasses that are themselves message-driven bean classes.


So... can or can not? :-)

Thanks in advance!

Cheers.


OCP Java SE 6 Programmer, OCM Java SE 6 Developer, OCE Java EE 6 JSPSD, OCE Java EE 6 EJBD, OCE Java EE 6 JPAD.
[WIP]: OCE Java EE 6 WSD
Lucas Smith
Ranch Hand

Joined: Apr 20, 2009
Posts: 747

Can anyone clear this out? This is a kind of inconsistency.


SCJP6, SCWCD5, OCE:EJBD6.
 
 
subject: MDB's superclass as MDB - allowed or not?
 
Threads others viewed
can MDB used for Topic listening?
multi-threading from web service
MOM question
Mock Question about Transactions
MDB and its strange inheritance
IntelliJ Java IDE