Discussion Locked
EJB
0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is there a solution to find out when to use a Session bean or Entity Bean?
Desktop
by khwallis
Entity EJBs are intended to correspond to components in the persistent storage. So, for example, you'd implement an Entity Bean for "user" data if your database had a "user" table.
Session EJBs are intended to correspond to business components &processing. Session Beans encapsulate Entity Beans, as required, to perform tasks.
You're best perusing a book on the subject like the "___ in a Nutshell" or "Core Java" series.
This discussion is closed to new replies.
Sort by Trending