how can u integrate ejb and hibernate? How can u call
hibernateDAO methods in session bean?

Answers were Sorted based on User's Feedback



how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean? ..

Answer / vamsee

As both are different technologies, they vary in mapping to
Data bases. Ejb's uses service of J2EE container to talk to
DB's but is not. It is ORM model which directly talk to the
DB objects. Hibernate reduces the level of complexity to
map the DB.

Is This Answer Correct ?    3 Yes 3 No

how can u integrate ejb and hibernate? How can u call hibernateDAO methods in session bean? ..

Answer / 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

More EJB Interview Questions

What are the key features of the ejb technology?

0 Answers  


What is entity beans in ejb with example?

0 Answers  


What do you mean by timer service and where it is used?

0 Answers  


java doesnot support multiple inhetance. but a interface can support.how the ambiguities are rectified in interfaces?

3 Answers  


What are the benefits of ejb?

0 Answers  






Can a client interact with an JavaBean directly? Explain?

1 Answers  


what is mean by com/Dcom ? Please answer me. Advance thanks.

1 Answers   Excel,


What is BDK?

3 Answers  


What is pub/sub model?

0 Answers  


Which is more beneficial: Stateful or Stateless Bean?

0 Answers  


Explain what is an EJB Context?

0 Answers   BirlaSoft,


What is the default transaction attribute for an ejb?

0 Answers  


Categories