• Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity and session bean

 
Sree kanth
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I have two doubts

1. Can an entity bean be a statefullsession bean also?

2. In J2EE 1.4 in CMP will the containor generates set and get methods automatically?Why do we require this new change at all?
 
Daniel Rhoades
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. An Entity Bean is an Entity Bean and a Session Bean is a Session Bean they implement a different interface to each other. Entity Beans do not have client specific state.

2. The CMP engine will create the actual accessors, but you must define them as abstract first in your bean (and your component interface where applicable).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!