• 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
     
    What are you doing? You are supposed to be reading this tiny ad!
    the new thread boost feature brings a LOT of attention to your favorite threads
    https://coderanch.com/t/674455/Thread-Boost-feature
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!