This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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);
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Basic doubt in entity bean
 
Similar Threads
Final class - and Persistence
Html entity
What's the difference between entity beans and entity classes?
@NativeNamedQuery
Another 'Y' game