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 advantages of java beam?
What is ejb 3?
What happens when I change a value in the httpsession from inside an ejb?
Is having static initializer blocks legal in ejb?
What are the key features of the ejb technology?
What is stateless programming?
What is the use of @resource?
What is the default transaction attribute for an ejb?
What is enterprise bean?
What’s the difference between hibernate and ejb 3? Don’t you think ejb 3 is just a clone of hibernate?
How do I use a less than or greater than on a message selector in ejb-jar.xml?
What is activemq used for?
Define Clone?
What is use of @postconstruct?
Is ejb a framework?