Java Stream Question and Answers

36. Describe the life cycle of an Entity Bean in terms of its relationship to the Instance Pool?
  An Entity Bean exists in one of the three states:
  • No state – When a bean instance is in this state, it has not been instantiated yet. This state is identified to provide a beginning and an end for the life cycle of a bean instance.
  • Pooled state– When an instance is in the pooled state, it has been instantiated by the container but has not yet been associated with an EJB object.
  • Ready state – A bean instance in this state has been associated with an EJB object and is ready to respond to business method invocations.
 
Your Name Your Email-ID
Your Answer
37. What do you know about Deployment Descriptors?
 
  • Deployment descriptors serve a function very similar to property files. They allow us to customize the behavior of software at runtime without having to change the software itself. Property files are often used with the applications, but deployment descriptors are specific to a class of enterprise bean.
  • Deployment descriptors are also similar in purpose to property sheets used in VB and Power Builder.
  • Where property sheets allow us to describe the runtime attributes of visual widgets, deployment descriptors allow us to describe runtime attributes of server side components (security, transactional context etc.).
  • Deployment descriptors allow certain runtime behaviors of beans customized without alternating the bean class or its interfaces.
 
Your Name Your Email-ID
Your Answer
12345678910 Page 10 of 10