Search code examples
java-ee-6ejb-3.1

Entity-Bean(in EJB) is a server side component?


I am reading the Enterprise JavaBeans 3.1 (Sixth Edition) book .this book is told:

Entity beans, unlike session and message-driven types, are not server-side components.

But in some places it is said(for example http://en.wikipedia.org/wiki/Entity_Bean)

An "Entity Bean" is a type of Enterprise JavaBean, a server-side Java EE component...

I'm really confused:(.Which tell the truth ?Why is a server-side components?(or, Why not?)


Solution

  • As of 3.0, the primary persistence for EJBs is JPA, which overloads the term "entity bean" to refer to JPA entities rather than entity EJBs. JPA entities are not server-side components, but entity EJBs are. So, both quotes are correct even though they seem paradoxical when they are missing context.