This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is pojo

 
bryan lim
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ranchers,

i stumble onthis. it want to ask about this point:

i t is a Java object that doesn't extend or implement some specialized classes and interfaces respectively require by the EJB framework. Therefore, all normal Java objects are POJO’s only. The following classes are not POJO classes shown as:

class MyServlet extends HttpServlet {}
class MyRemote implements SessionBean {}


is the above true?

writing the subject as what is pojo so that people can find this post easily...


regards
Bryan
 
Steve Luke
Bartender
Posts: 4181
22
IntelliJ IDE Java Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, a POJO is a 'Plain Old Java Object'. As happens a lot with that site, they interpret it rather narrowly as if 'POJO' had something to do with EJBs. Really, a POJO would be any normal Java Object, one that you create, manage, and call. The alternative would be any Java Object whose lifecycle you don't really control, or are required to be run in a particular environment. For example, Servlets, JSPs, EJBs, Midlets, or Objects in any other of a number of frameworks which require special behavior/lifecycle/environment.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic