how can u integrate ejb and hibernate? How can u call
hibernateDAO methods in session bean?
Answer Posted / 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 |
Post New Answer View All Answers
What is bean-managed transaction?
Define EAR, WAR and JAR ?
What is ejb client?
What is the difference between ejbcreate() and ejbpostcreate?
Explain ejbhome and ejbobject in ejb?
What is enterprise javabeans (ejb) container?
What is software architecture of ejb?
What are the differences between ejb 3.0 and ejb 2.0?
What are the various types of entrepreneur java bean?
What is ejb context?
What does it mean to be stateless?
How is ejb different from java beans?
Enlist the changes in EJB 2.1 ?
How to determine, that beans are TX or not?
Explain what is an EJB Context?