aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes What's the diff b/tw a Session EJB and a regular java bean used w/ JSPs? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "What Watch "What New topic
Author

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

Chris Garrison
Ranch Hand

Joined: Jun 13, 2002
Posts: 44
Are they the same thing?
[ October 09, 2002: Message edited by: Chris Garrison11 ]

May the force be with you, always.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
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

Joined: Jun 13, 2002
Posts: 44
Thanks. I got it!
Love your show by the way.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What's the diff b/tw a Session EJB and a regular java bean used w/ JSPs?