Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Questions regarding EJB Overview

 
Saurabh Chaubey
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone explain me the meaning of the following statement:-

An EJB MUST NOT :-

  • use the subclass or object substitution features of the Java Serialization Protocol.
  • should not define a new class in an existing package.

  • Thanks in advance!
     
    Saurabh Chaubey
    Ranch Hand
    Posts: 101
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Can anyone please answer my query or give the post to follow if it is a duplicate query?
     
    Narendra Dhande
    Ranch Hand
    Posts: 951
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Hi,

    An EJB MUST NOT :-

    * use the subclass or object substitution features of the Java Serialization Protocol.


    I think it is related to abstraction that is
    ParentClass p = new SubClass();

    As Every bean instance is controlled by container, you must not use bean in this way.

    * should not define a new class in an existing package.

    This means that every bean must have public constructor.

    Pl. confirm

    Thanks
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic