File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Wht is data persistency. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Wht is data persistency." Watch "Wht is data persistency." New topic

Wht is data persistency.

manoranjan chiku

Joined: Mar 10, 2009
Posts: 1
Hi all
Could any one please explain how Entity beans store data in persistently.
What is advantage over JDBC. Please provide url Or you can explain.
Then how Hibernate in different from EJB (Entitybeans).

And in case of server crash How entity beans are useful...........

Manoranjan Praharaj
System Engg. TCS
Reza Rahman
Ranch Hand

Joined: Feb 01, 2005
Posts: 580

I don't think it is altogether reasonable to expect to answer these questions on a forum post. You may be best off picking up a good reference on EJB 3 or JPA. I don't know of any basic ones online, but the Sun Java EE 5 tutorial is decent.

In short, you write less low-level code in JPA than you do in JDBC. Hibernate 3 is a JPA implementation. JPA Entities do not automatically survive container crashes as EJB 2.x Entity Beans do.

Hope it helps,

Independent Consultant — Author, EJB 3 in Action — Expert Group Member, Java EE 6 and EJB 3.1
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 31634

Welcome to JavaRanch!

See my signature for how to ask questions in a way that makes them likely to get answers.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
I agree. Here's the link:
subject: Wht is data persistency.