aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Basic doubt in entity bean 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 "Basic doubt in entity bean" Watch "Basic doubt in entity bean" New topic
Author

Basic doubt in entity bean

magesh sripathy
Greenhorn

Joined: Apr 06, 2006
Posts: 27
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

Joined: Nov 08, 2007
Posts: 457
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,


Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
 
jQuery in Action, 2nd edition
 
subject: Basic doubt in entity bean