This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

POJOs Clarification

 
Ram Adsumalli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,

Can any one help me in explaining,what is the usage of Plain Old java Objects. What are the benefits of using of POJOs,For what purpose they meant for.


Thanks

Raghu
 
Steve Fahlbusch
Bartender
Posts: 605
7
Mac OS X Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's start with this, What you think is the difference between a POJO and a non-POJO?

And this is really looking like a beginning question!
[ November 10, 2006: Message edited by: Steve Fahlbusch ]
 
Ram Adsumalli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Steve,

I dont have idea regarding the POJO. So i am unable to express the difference . If you Know can you please share your veiws.


Thanks

Raghu
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you know what an EJB is? POJO is usually used in contrast to EJBs, and usually it's used when saying "you don't need EJBs, you can just use POJOs." In other words, "using POJOs" basically just means "not using EJBs."
 
Ram Adsumalli
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am little bit confused with Ernest wording. If i am not wrong if i am using POJO means its no EJB as per Ernest

But when i am reading through EJB 3.0 we are using annotation with POJOs.
I am reading one of article published by Chris, In that i hope he mentioned that POJOs will not implement any special interfaces. But when i am working with session bean i am implementing the local and remote interfaces . can i know what is meaning for special interfaces which was mentioned by chris

Raghu
 
Steve Fahlbusch
Bartender
Posts: 605
7
Mac OS X Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the following (and the associated links) and see if this addresses some your concerns.

http://en.wikipedia.org/wiki/Plain_Old_Java_Object
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic