Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Bean must not attempt to define a class in a package

 
Sandesh Tathare
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I came across following statement:

"The enterprise bean must not attempt to define a class in a package."

This function is reserved for the EJB Container. Allowing the enterprise bean to perform this function would create a security hole.

I did not understand above point. Can someone please explain in detail what exactly is meant by: "The enterprise bean must not attempt to define a class in a package." Can some one please quote an example for better understanding?

:roll:
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please have a look at the following thread which handles the same topic:
http://www.coderanch.com/t/159917/java-EJB-SCBCD/certification/Imitations-EJB-Model

Thanks

PS: We have a search page
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!