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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

An instance of stateful session ejb when accessed simultaneously from more than one clients on same vm results in remoteexception or ejbexception. In case the client is a servlet thread, which of the techniques can be used to avoid remoteexception/ejbexception?

570


What is stateless code?

503


What optimization could I use if the ejb container is the only point of write access to the database?

576


Is it legal to have static initializer blocks in ejb?

560


What is the procedure for the presentation of ejb persistence mechanism?

589






What is backing bean?

612


What are the types of enterprise bean?

568


What is message-driven bean?

578


How does ejb container work?

521


What is the use of @ejb annotation?

538


TX operation funtion executed by?

2214


Why is ejb needed?

510


What is ejb and how it works?

527


What are ejb components?

537


Can more than a single table be mapped in cmp?

571