how can u integrate ejb and hibernate? How can u call
hibernateDAO methods in session bean?
Answers were Sorted based on User's Feedback
Answer / vamsee
As both are different technologies, they vary in mapping to
Data bases. Ejb's uses service of J2EE container to talk to
DB's but is not. It is ORM model which directly talk to the
DB objects. Hibernate reduces the level of complexity to
map the DB.
| Is This Answer Correct ? | 3 Yes | 3 No |
Answer / guest
hibernate used to perform OR(object relational) mapping.it
is alternate to DAO .
servlets--->ejbSEssionbean(to store businesslogic)--->ejb
entity bean(to maintain persistence logic)here we use
hibernate instead of entity bean.
the above said is the integration procedure to separate
businesslogic from perssitence logic.
to call DAO methods in session bean normally we use
callback methods ejbcreate(),ejbload() to clear previous
datas in database,ejbstore()to store new datas using
primarykey value.ejbsetSessionContext() to initiate the
call.
| Is This Answer Correct ? | 1 Yes | 3 No |
How the container will maintain synchronization for multiple calls to the entity bean?
What are the limitations of using local object?
Name the acid properties of a transaction.
what are the influence factors of ejbLoad() & ejbStore()?
what are main features in EJB?
How does the server decide which beans to passivate and activate?
how can we decide a session bean as stateless or stateful without seeing jar file? i.e. by seeing the class file.
What do you mean by EJB architecture?
What is stateless and stateful?
abstract methods in SessionBean?
What is the difference between message driven beans and stateless session beans?
What is bean in ejb?