Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Confusion on whether to use Session or Entity beans for database

843830Sep 4 2005 — edited Sep 13 2005
I am quite new to EJB and have a question with regards to either choosing Session or Entity beans for database transactions.

For example currently i have created MyTestEJB, which is an entity bean. My question is i have added both the write and read functionality to this bean. But because i may want to perform only read type transactions sometimes, i dont believe entity beans would be suitable for such a job. As such i think session beans would be ideal.

So is it appropiate to seperate the read and write functionality into a session and Entity bean.

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 11 2005
Added on Sep 4 2005
4 comments
166 views