This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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