Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic doubt in entity bean

 
magesh sripathy
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to write the buisness method in the container managed entity beans other than the setter and getter methods of the persistence fields.
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by magesh sripathy:
Is it possible to write the buisness method in the container managed entity beans other than the setter and getter methods of the persistence fields.


yes.

Mortgage

public float remainingLoan(Date atGivenDate)

but to access it, you'll generally want to provide a Stateless bean which provides access to this business logic via Remote interface,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic