jQuery in Action, 3rd edition
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
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: 33122

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]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link: http://aspose.com/file-tools
subject: Wht is data persistency.
It's not a secret anymore!