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?
Can more than a single table be mapped in cmp?
Why do we need ejb?
What does @inject mean in java?
What is applicationscoped?
Define ejb Create() and EjbPostCreate()?
What is difference between ejb 1.1 and ejb 2.0?
Name the attributes of javax.ejb.ejb.
List some key actors in persistence api.
What happens when I change a value in the httpsession from inside an ejb?
What is the difference between ejb and java beans?
What is ejb container?
What are the key benefits of the ejb technology?
Match the ejb functions given below with the functionality equivalent in sql?
What is @autowired required false?