Enterprise Java Beans (EJB) 2.0 Test
A client wants to access Enterprise Java Bean for some processing. The first step will be looking up the class that implements its home interface. Which of the following should be used for the purp...
A heavy tool manufacturing company manages its business and production by using enterprise beans. A session bean named 'Status' is used to get the production status for the day. The following code ...
A pre-cached instance is used to load state information on creation of an EJB.
An online medical shop uses Container Managed persistent beans for its operations. An OrderBean uses a query to list all the orders where payable amount is more than $800. The XML query tag in the ...
An online shop employs a stateless session bean (named 'Eshop') to process the requests. 'Eshop' uses a declarative transaction management system. The following code is from the xml deployment desc...
Both RMI and CORBA define messaging protocols called:
By interoperating via IIOP, an EJB can directly access:
Database connection pooling is beneficial because:
How do Enterprise Java Beans access the database?
One of the methods of your entity bean retrieves the names of all the patients admitted in a particular ward of a hospital. Using a connection named 'con', you want to execute the following query: ...
SessionSynchronization Interface must be implemented to reset the instance variables.
The EJB specification defines six distinct roles in the application development and deployment life cycle. Which of the following roles is not mentioned in it?
The following method signature is found in an implemented entity bean named 'CustomerBean.' 'CustomerPK' is a class representing the primary key. public CustomerPK ejbFindByPrimaryKey(CustomerPK k...
The interface that must be implemented by a stateless session bean is javax.ejb.SessionBean.
The method ejbCreate() allows session beans to perform initializations. Which of the following methods should be called by the container before ejbCreate()?
The methods declared in Session Bean interface are known as Callback (methods).
The PrimaryKey class is used to provide each entity bean with a ____________:
The principal finder method that must be implemented by every entity bean class is:
The transaction attribute of a bean is set to 'TX_REQUIRES_NEW.' What do you infer about its behavior?
To disable the Passivaton process, set the EJBPassivationTimeout() variable to zero.
We are saving a handle to an EJBObject named 'bookEJBObject' for an online book shop: 1. javax.ejb.Handle bookHandle = _____________; 2. 3. ObjectOutputStream stream = 4. new Objec...
What are the three classes that a Session EJB class must provide?
What is the restriction that EJB specification imposes on CMP fields?
What will happen to the running session beans if the EJB container crashes or restarts?
Which of the following constitute the enhancements made to EJB 2.0?
Which of the following is a language in which IDL compiler of CORBA generates proxies and skeletons?
Which of the following is a name of the design pattern not associated with EJB?
Which of the following is not implemented by a stateless session bean?
Which of the following methods should be invoked by the container to get a bean back to its working state?
Which of the following must be implemented by a JMS message-driven bean?
Which of the following services does an EJB Server/Container provides to EJB?
Which of the following services does EJB container provide to a bean?
Which of the following statements are correct with regard to EJB QL?
Which of the following statements is correct with regard to 'poison' message?
Which of the following statements is correct with regard to entity, session, and message-driven beans?
Which of the following statements is correct with regard to JavaBeans and Enterprise JavaBeans?
Which of the following statements is correct with regard to the method ejbSelect()?
Which of the following statements is incorrect with regard to the process of Instance Pooling in EJB?
Which of the following statements is not correct for an Enterprise Java Bean?
Which of the following statements is not correct with regard to Passivation of beans?
Which of the following statements is not correct with regard to relationships in EJB?
Which of the following transaction modes are supported by Enterprise Java Beans?
You are working with EJB2.0. You have to retrieve a previously saved handle to an EJBObject named 'bookEJBObject.' In order to restart the processing for that particular request, you need to get th...
You define an enterprise bean as follows: Public class CalcSessionBean implements javax.ejb.SessionBean Which of the following method definitions is not mandatory?
You don't have any database recovery/backup system in place. Which of the following statements is true with regard to committed and uncommitted data of your entity bean?