Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java beans

 
shelly roy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between java beans and enterprised java beans???
the beans that r used in jsp.......r they java beans or r they ejbs??
 
Pauline McNamara
Sheriff
Posts: 4012
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch shelly roy!

Since this question is not specific to the Cattle Drive, I've moved it to the EJB and Other J2EE Technologies forum.
 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shelly,
This has been answered before many times.Please search this forum for previous posts.
 
Roy Ben Ami
Ranch Hand
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The beans in JSP are regular java beans.

Regular java beans are just java classes that you write that must have certain things by convention.
For example, they must have a set and get method for each public variable they expose. They also must have an empty constructor.

EJB (Enterprise java beans) are more complex and are used in Application servers such as JBoss. They have many features like remote usage, transactions management and much more.

For better explanation see here from just 2 days ago.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic