in Technology by
What is the difference between Hibernate and EJB 3? Do not you think EJB 3 is just a clone of Hibernate?

1 Answer

0 votes
by

The perception of EJB3 as being a simple clone of Hibernate is primarily based on developer familiarity with Hibernate and similarity of naming, as well as a common purpose, and that Hibernate is morphing itself into an EJB3 implementation based on the work going into the specification, not the other way around.

EJBs are supposed to be components, in the sense that they're not just one class, but a set of classes, descriptors, and usage and management contracts. All of this in order to allow a container (JBoss, Weblogic, etc.) to provide services to those components, and to be able to reuse and distribute this component. These services are, among others, transactions, concurrent access control, security, instance pooling, etc.

Hibernate is "just" an ORM (Object/Relational Mapping) tool. Quick and dirty, this means you can store an object tree belonging to a class hierarchy in a relational DB without writing a single SQL query. Quite cool, IMO. But no transaction control, no instance pooling, no concurrency control, and certainly no security.

Related questions

0 votes
0 votes
    What is the difference between ‘git remote’ and ‘git clone’?...
asked Nov 2, 2020 in Technology by JackTerrance
0 votes
    A number of cats got together and decided to kill between them 999919 rats. Every cat killed an equal number of rats. Each cat ... cat killed ? A) 1009 B) 991 C) 2000 D) 1000...
asked Feb 12, 2021 in Education by JackTerrance
0 votes
    do you think the following two expression are the same if yes write the output if not justify your answer X=int(22/7) X=(22.0/7) Select the correct answer from above options...
asked Dec 13, 2021 in Education by JackTerrance
0 votes
    What is the difference between the first and second level cache in Hibernate?...
asked Feb 4, 2021 in Technology by JackTerrance
0 votes
    What is the difference between save() and persist() method in Hibernate?...
asked Feb 4, 2021 in Technology by JackTerrance
0 votes
    What is Difference between save(), saveOrUpdate() and persist() in Hibernate Session?...
asked Feb 4, 2021 in Technology by JackTerrance
0 votes
    Difference between get() vs load() method in Hibernate?...
asked Feb 4, 2021 in Technology by JackTerrance
0 votes
    Can you arrange 9 numerals - 1, 2, 3, 4, 5, 6, 7, 8 and 9 [using each numeral just once] above and below a division line, to create a fraction equaling to 1/3 [one third]?...
asked Feb 13, 2021 in Education by JackTerrance
0 votes
    What do you think about BPEL and BPM? How do they compare?...
asked Jun 6, 2021 in Technology by JackTerrance
0 votes
    What is performance testing and why do you think it is important?...
asked Feb 8, 2021 in Technology by JackTerrance
0 votes
    Why do you think we must use the Raspberry Pi?...
asked Jan 20, 2023 in Technology by JackTerrance
0 votes
    How do you think this has benefitted them?...
asked Feb 22, 2021 in Technology by JackTerrance
0 votes
    Why do you think there is a need to made changes to the files, documents or the source codes in businesses?...
asked Feb 18, 2021 in Technology by JackTerrance
...