Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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


Please Help Members By Posting Answers For Below Questions

What are the advantages of java beam?

1172


Can more than a single table be mapped in cmp?

1071


Why do we need ejb?

1083


What does @inject mean in java?

1151


What is applicationscoped?

1040


Define ejb Create() and EjbPostCreate()?

1228


What is difference between ejb 1.1 and ejb 2.0?

1060


Name the attributes of javax.ejb.ejb.

1002


List some key actors in persistence api.

1153


What happens when I change a value in the httpsession from inside an ejb?

1043


What is the difference between ejb and java beans?

1058


What is ejb container?

1203


What are the key benefits of the ejb technology?

1111


Match the ejb functions given below with the functionality equivalent in sql?

1021


What is @autowired required false?

1080