Enterprise JavaBeans Architecture
Questions covering Enterprise JavaBeans (EJB) architecture including session beans, entity beans, message-driven beans, container management, and EJB 3.0 features
Questions
You are using an EJB3.0 Stateful Session Bean for storing shopping cart information. You would like to invoke a particular method to store state data whenever bean passivates. What is the best way to achieve it?
- You must write ejbPassivate() method. Shift the logic to this method.
- Mention the method name in the deployment descriptor
- Use annotations
- There is no such facility in EJB3.0
Which of the properties in the list below are unique to Enterprise JavaBeans but not for JavaBeans?
- They are components.
- A container manages them.
- More than one of them can be combined in a single program (not application).
- They live on the server side of an application.
- They can be part of a transaction.
What are valid activities of the container when a request arrives for a method of a bean instance?
- Acknowledge receipt of the request to the client
- Start a transaction
- Check security for the client
- Discard the request.
- Directly and immediately pass the request to the bean's methods.
Which of the following properties of stateful session beans are true:Please select the best answer.
- There is a many-to-one relationship between the client and the session bean instance.
- Session bean instances live forever.
- The container may discard the bean instance arbitrarily, when and if it needs to, for performance reasons.
- Stateful session beans may have initial state information passed to them from the client when they are created.
- Stateful session bean intances are created when the bean is deployed in the container.
Which of the properties of entity beans are true: Please select the best answer.
- Clients of entity beans have a one-to-one relationship with entity bean instances.
- Entity bean instances may not be discarded by the container if it needs to free up resources.
- Each entity bean instance has a unique identity.
- Entity beans map to one or more pieces of data, each one of which has a unique primary key.
- None of above
Is Entitybean has one to one client relationship ?
- True
- False
Can we write a bean extends clause for extending remote interface in bean?
- True
- False
Both the skeleton and the stub are uniquely associated with that specific remote object
- True
- False
We can use any java primitive types as entity bean primary key field.
- True
- False
Call back methods (ejbCreate,ejbRemove)implementation is different for different application servers.
- True
- False
Message Driven Bean mimicks structure of Session bean in some manner.
- True
- False
Which OWB module stores Meta definitions used in the DW and the transformation library, which contains more than 150, preset transformations.
- OWB Client
- OWB Repository
- OWB Runtime Audit Browser
- OWB Runtime Assistant
- OWB Design Browser Client
Which OWB module is used to design the DW and the ETL processes. This component also includes bridges, integrators, and editors and acts as a point of access to other OWB components.
- OWB Repository
- OWB Runtime Audit Browser
- OWB Runtime Assistant
- OWB Client
- OWB Design Browser Client
Which OWB client is used to view metadata, run web reports, perform lineage, and impact analysis on your metadata.
- OWB Design Browser Client
- OWB Repository
- OWB Client
- OWB Runtime Assistant
- OWB Runtime Audit Browser
Which client helps you to run reports on the audit and error information captured when you run jobs to load and refresh your ETL processes.
- OWB Repository
- OWB Client
- OWB Runtime Assistant
- OWB Runtime Audit Browser
- OWB Design Browser Client
Which OWB client helps you to set up a runtime repository and target schema and maintain the deployment and runtime audit/error information.
- OWB Repository
- OWB Client
- OWB Design Browser
- OWB Runtime Audit Browser
- OWB Runtime Assistant
How many components are present in OWB architecture?
- 5
- 1
- 2
- 4
- 3
Which editor defines the source/target modules and editing modules (containers or collection of the DW objects).
- Code Editor
- Module Editor
- Mapping Editor
- Text Editor
- Object Editor
Which editor includes the table editor, dimension editor, fact editor etc. that enable you to edit object properties.
- Client Editor
- Dimension Editor
- Fact Editor
- Object Editor
- Text Editor
Which editor enables you to design and configure how the data gets loaded into the target data warehouse, and is used to design a graphical representation of the relation between the data source objects that are used to populate the data warehouse target objects. The editor provides a set of operators that you can include with the mappings along with standard or custom transformations if required, such as key look, generating sequence etc. It also enables validation and generation of the code used to populate the data warehouse target.
- Mapping Editor
- Transformation Editor
- Repository Editor
- Object Editor
- Code Editor