Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What's the diff b/tw a Session EJB and a regular java bean used w/ JSPs?

 
Chris Garrison
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are they the same thing?
[ October 09, 2002: Message edited by: Chris Garrison11 ]
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
They are not the same. A Session Bean is an EJB Component that is managed within an EJB Container. The container provides a bunch of services to make the developers life easier, such as remoteability, declarative transactioning, lifecycle management, resource pooling, declarative security, blah, blah, blah.
A JavaBean (like the ones typically used in JSP) are just plain Java classes that follow a standard naming convention for methods. This allows easy manipulation using reflection (which is what the JSP tags transparently do for you). None of the previously mentioned services are available to plain JavaBeans.
 
Chris Garrison
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks. I got it!
Love your show by the way.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic