1. How EjbQL ara impemented when it is necessary?2. what do you mean by shared transactional state data maintained by EJB?3. what do you mean by CMP & BMP & what is basic difference between them?4. where are databese maneged by Entity bean is implemented & how many instance of the Entity beanfor each client is maintained by Ejb container?please describe ths question conceptually?5. why BMP class returns null & why CMP implementation class reurns instanceof PK class?6. what do you mean by EJB client & EJB Server ?7. where home interface resides?remote mechine or client machine?8. How ejb,jsp,Oracle communicates in building a business Application?9. why we need the transactions?10. What is an EJB Context?

Showing Answers 1 - 2 of 2 Answers

s_s78

  • Mar 20th, 2006
 

A1. EJB QL is introduced in EJB 2.0 specification it is used to write only finder(Select) queries for Entity beans. it is simple to write and give OO feel. it supports lazy loading.

A2.It is only applicable for statefull session bean

A3. In BMP it is programmer responcibility to manage persistance and write queries for insertion,deletion and updation of records(Entities). wheras in CMP this all is handle by Container itself.

A4. Entity bean represent a row from database table more or less you can think it as OO representation of tabular data. you read from object, update Object. the container map those objects to a row in a table.

A5.class dose not return anything it is method such as findByPrimayKey and Create i can tell you later if you clear the question more clear.

A6. client is client in all respect and technology, client request for services that server can serve.

A7. on both machine.

A8. for JSP it only knows methods exposed by session bean,further if u r using entity bean session will communication to database via entity bean,finally database has physical data. case.1. JSP->Session->Entity->DB. case.2. JSP->Session->DB

rest later..

Shekhar Singh

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions