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

do i need to know java beans before EJB?

 
pradeep arum
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
I am an SCJP recently ,do I need to know java beans before EJB? my knowledge about JAVA BEANS is mediocre.
thanks
pradeep
 
Sagar Salapaka
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you should understand what JavaBeans are and how it helps develop component-based applications in Java.
If you can write simple beans and understand the role Java Serialization plays in creating persistent objects, you should be ok.
Good luck!
 
Kathy Sierra
Cowgirl and Author
Rancher
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy -- you don't *really* need to know about JavaBeans, although they are a component-based development model, they are completely different from enterprise JavaBeans. Regular JavaBeans are used as 'components' at development time, in a bean-assembly tool (like most IDE's that have GUI builders), but at runtime they are really just plain old Java objects (following a specific naming convention).
But enterprise JavaBeans are almost the opposite -- they are NOT necessarily used as components at development time (although many EJB-aware tools can, but there is nothing in the EJB specification for that at this time... although I *believe* there is at least one JSR that may address this...). But enterprise JavaBeans are NOT just plain old Java objects at runtime, but are instead controlled/managed/instantiated/killed by the Container.
So, you can start in with EJB without really knowing JavaBeans, although as Sagar said, it is a good idea to be familiar with the idea of component-based development.
cheers,
Kathy
 
pradeep arum
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Kathy & Sagar
.....its time for me start EJB then
regards
pradeep
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic