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 do you mean by in-memory replication?
What are ejbs used for?
What is enterprise bean provider?
Is method overloading allowed in ejb?
A client wants to preserve the reference to the ejbhome object of an enterprise bean instance and use it later. Which of the following can be serialized for this purpose?
How can a session bean be configured for transactions of bean-managed?
What is backing bean?
What is ejb client?
What is ejb container?
What is stateful session bean?
What is ejb container in java?
Who took over ejb?
What is stateless session bean?
What does statelessness mean?
What is mdb in ejb?