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 are the differences between ejb 3.0 and ejb 2.0?
What is ejb technology?
What are the callback annotations for the stateless bean?
How do I use a less than or greater than on a message selector in ejb-jar.xml?
can anyone explain me the workflow of EJB.I have developed an app. in WSAD using an example that contains CMP and session bean.But i am not able to understand the basic flow between diffrent packages.
What is the meaning of acid in the connection of transaction management?
Define ripple effect?
What is ejb client?
What is ejb and how it works?
Define ACID Properties?
Explain what is an EJB Context?
What is the difference between message driven beans and stateless session beans?
What is ejb ql?
What are the key benefits of the ejb technology?
What is ejb and its architecture?