Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Questions regarding EJB Overview  RSS feed

 
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?
     
    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
     
    You’ll find me in my office. I’ll probably be drinking. And reading this tiny ad.
    Rocket Oven Kickstarter - from the trailboss
    https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!