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 the difference between ejb and spring?
What are ejb containers?
What is message-driven bean?
What does statelessness mean?
Which services are provided to ejb components by the ejb container?
Can remove() be a Stateless Session bean?
What are the advantages of ejb components?
How do you decide whether you should use session, entity or message driven bean?
why Bean class implements all business method of Remote interface but bean bean class not implements the remote interface
Why is ejb used?
What is stateless ejb?
What is ejb home object?
Explain the concept of local interfaces?
What is backing bean?
What is the difference between ejb and java beans?