|
|
NEW INTERVIEW QUESTIONS.COM
J2EE INTERVIEW QUESTIONS
EJB INTERVIEW QUESTIONS DETAILS
NewInterviewQuestions.com - Home for World's Largest Interview Questions Website.
A D V E R T I S E M E N T
Question |
What is the lifecycle of Entity Bean ? |
Answer
|
The following steps describe the life cycle of an entity bean instance An entity bean instances life starts when the container creates the instance using newInstance and then initialises it using setEntityContext. The instance enters the pool of available instances. Each entity bean has its own pool. While the instance is in the available pool, the instance is not associated with any particular entity object identity. Any of these pooled instances may be used to execute finder (ejbFind) or home (ejbHome) methods. An instance transitions from the pooled state to the ready state when the container selects that instance to service a client call to an entity object. There are two possible transitions from the pooled to the ready state: through the creation of an entity (ejbCreate and ejbPostCreate) or through the activation of an entity (ejbActivate). When an entity bean instance is in the ready state, the instance is associated with a specific entity object identity. While the instance is in the ready state, the container can synchronize the instance with its representation in the underlying data source whenever it determines the need to using ejbLoad and ejbStore methods. Business methods can also be invoked zero or more times on an instance. An ejbSelect method can be called by a business method, ejbLoad or ejbStore method. The container can choose to passivate an entity bean instance within a transaction. To passivate an instance, the container first invokes the ejbStore method to allow the instance to prepare itself for the synchronization of the database state with the instance?s state, and then the container invokes the ejbPassivate method to return the instance to the pooled state. There are three possible transitions from the ready to the pooled state: through the ejbPassivate method, through the ejbRemove method (when the entity is removed), and because of a transaction rollback for ejbCreate, ejbPostCreate,or ejbRemove. The container can remove an instance in the pool by calling the unsetEntityContext() method on the instance.
© NewInterviewQuestions.com
|
If you have the better answer, than send it to us. We will display your answer after the approval.
Rate the above answer. Help us to know about the answer.
Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.
A D V E R T I S E M E N T
|
|
|
Latest 10 Answers
|
Hub supports broadcasting.But switch supports unicasting and broadcasting.So many network system using switch.
|
Between 2GB And 4GB.
|
100000
|
A LIST OF BALANCES OF A/CS OF LEDGERS IS CALLED A TRIAL BALANCE.
|
log6=e^6 and log5=e^5 then log(a+b)=log(a*b).e^(6*5)=e^30.
so,log30 is answer.
|
tn=a+(n-1)d.
series is 112,126,140,154......994.
a=112,tn=994,d=14.sustitute will get n=64.
sn=n/2{first term+last term),sn=64/2{112+994},sn=35392
|
1.Employee Details
2.Patient details
3.Hospital Location
4.Ambulance Service
5.operation rooms
6.No of Staff doctors,nurse etc.
5.Availabilty of Good service
|
Data reader is to read the data .It can read only one row data at a time.
Data adapter acts as a bridge between Database and data set.It is used to maintain the connection and it reads whole data at a time.
|
# include
#include
void main()
{
clrscr();
printf("\n "xxx"\n");
getch();
}
|
variable is a place where we can store different type of value.
In other word,in computer memory the space where we store constant value i.e.we can say the home of constant in memory.
|
|