• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are they the same thing?
[ October 09, 2002: Message edited by: Chris Garrison11 ]
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks. I got it!
Love your show by the way.
 
reply
    Bookmark Topic Watch Topic
  • New Topic