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
Enlist the CallBack methods of Entity Bean.
What are the components of session beam?
Is udp stateless?
What are the different kind of ejb's?
How can enterprise javabeans be accessed from active server pages?
What is the procedure for the creation of stateless ejb?
What are the limitations of using local object?
What is bean-managed persistence?
What is entity bean?
What is ejb framework?
What does @singleton annotation do?
How entity beans support container managed persistence?
Can tomcat run ejb?
What is the advantage of using entity bean for database operations, over directly using jdbc api to do database operations? When would I use one over the other?
What is ejb in spring?