Question: What is the relationship between local interfaces and container-managed relationships?
Answer: Entity beans that have container-managed relationships with other entity beans, must be accessed in the same local scope as those related beans, and therefore typically provide a local client view. In order to be the target of a container-managed relationship, an entity bean with container-managed persistence must provide a local interface.
Question: What does a remove method do for different cases of beans?
Answer: Stateless Session : Does not do anything to the bean as moving the bean from free pool to cache are managed by the container depending on load.
Stateful Session: Removes the bean from the cache.
Entity Bean: Deletes the bean (data) from persistent storage
Question: How does a container-managed relationship work?
Answer: An entity bean accesses related entity beans by means of the accessor methods for its container-managed relationship fields, which are specified by the cmr-field elements of its abstract persistence schema defined in the deployment descriptor. Entity bean relationships are defined in terms of the local interfaces of the related beans, and the view an entity bean presents to its related beans is defined by its local home and local interfaces. Thus, an entity bean can be the target of a relationship from another entity bean only if it has a local interface.
Question: What is the new basic requirement for a CMP entity bean class in 2.0 from that of ejb 1.1?
Answer: It must be abstract class. The container extends it and implements methods which are required for managing the relationships
Question: What are the basic classes required in the client for invoking an EJB?
Answer: The home and the remote interfaces, the implementation of the Naming Context Factory, the stubs and skeletons.
In some App servers the stubs and the skeletons can be dynamically downloaded from the server
Question: What is the difference between Message Driven Beans and Stateless Session beans?
Answer: In several ways, the dynamic creation and allocation of message-driven bean instances mimics the behavior of stateless session EJB instances, which exist only for the duration of a particular method call. However, message-driven beans are different from stateless session EJBs (and other types of EJBs) in several significant ways:
§ Message-driven beans process multiple JMS messages asynchronously, rather than processing a serialized sequence of method calls.
§ Message-driven beans have no home or remote interface, and therefore cannot be directly accessed by internal or external clients. Clients interact with message-driven beans only indirectly, by sending a message to a JMS Queue or Topic.
Note: Only the container directly interacts with a message-driven bean by creating bean instances and passing JMS messages to those instances as necessary.
§ The Container maintains the entire lifecycle of a message-driven bean; instances cannot be created or removed as a result of client requests or other API calls.
Question: What are the benefits of Clustering (Workload Management)?
Answer: They are
1. It balances client processing requests, allowing incoming work requests to be distributed according to a configured Workload Management selection policy.
2. It provides fail over capability by redirecting client requests to a running server when one or more servers are unavailable. This improves the availability of applications and administrative services.
3. It enables systems to be scaled up to serve a higher client load than provided by the basic configuration. With server groups and clones additional instances of servers can easily be added to the configuration.
4. It enables servers to be transparently maintained and upgraded while applications remain available for users.
5. It centralizes administration of application servers and other objects.
Question: What are the types of Scaling?
Answer: There are two types of scaling
1. Vertical Scaling
2. Horizontal Scaling.
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment