EJB Interview Questions

Showing Questions 221 - 230 of 230 Questions
First | Prev | Next | Last Page
Sort by: 
 | 
Jump to Page:
  •  

    What is CMR

    Answer posted by Mohan on 2005-05-21 17:14:47: CMR - Container Managed Relationships allows the developer to declare various types of relationships between the entity beans

    Mohan

    • May 21st, 2005

    CMR - Container Managed Relationships allows the developer to declare various types of relationships between the entity beans

  •  

    What is the difference between sessioncontext and entitycontext

    Answer posted by Mohan on 2005-05-21 17:08:14: Session Context Contains information that a Session Bean would require from the container  Entity Context contains the information that an Entity Bean would require from a container

    Mohan

    • May 21st, 2005

    Session Context Contains information that a Session Bean would require from the container  Entity Context contains the information that an Entity Bean would require from a container

    kanth

    • Apr 28th, 2005

    Entity beans use a subclass of EJBContext called EntityContext. Session beans use a subclass called SessionContext

  •  

    What is the difference between JNDI context, Initial context, session context and ejb context

    Answer posted by Mohan on 2005-05-21 17:07:03: JNDI Context Provides a mechanism to lookup resources on the network Initial Context constructor provides the initial context. Session Context has all the information a session bean would require from the container Entity Context has all the information that an Entity bean would need from a container Ejb Context contains the information...

    Mohan

    • May 21st, 2005

    JNDI Context Provides a mechanism to lookup resources on the network Initial Context constructor provides the initial context. Session Context has all the information a session bean would re...

  •  

    What is the life cycle of MDB

    Answered by Nikhil on 2005-05-11 01:52:59: The lifetime of an MDB instance is controlled by the container. Only two states exist: Does not exist and Ready , as illustrated in the following figure:     The life of an MDB instance starts when the container invokes newInstance() on the MDB class to create a new instance. Next, the container calls setMessageDrivenContext() followed...

    Nikhil

    • May 11th, 2005

    The lifetime of an MDB instance is controlled by the container. Only two states exist: Does not exist and Ready , as illustrated in the following figure:     The life of an MDB ins...

  •  

    What are the various transaction attributes and differences between them

    Answered by Jey on 2005-05-08 18:01:39: There are six transaction attributes that are supported in EJB. 1. NotSupported 2. Supports 3. Required 4. RequiresNew 5. Mandatory 6. Never

    Jey

    • May 8th, 2005

    There are six transaction attributes that are supported in EJB. 1. NotSupported 2. Supports 3. Required 4. RequiresNew 5. Mandatory 6. Never

  •  

    What is Message Driven Bean

    Answered by Jey on 2005-05-08 12:30:37: Message Driven Bean (MDB) is an enterprise bean which runs inside the EJB container and it acts as Listener for the JMS asynchronous message . It does not have Home and Remote interface as Session or Entity bean. It is called by container when container receives JMS asynchronous message. MDB has to implement MessageListener which has a method onMessage(Message...

    Jey

    • May 8th, 2005

    Message Driven Bean (MDB) is an enterprise bean which runs inside the EJB container and it acts as Listener for the JMS asynchronous message . It does not have Home and Remote interface as Session or...

  •  

    What is the difference between activation and passivation

    Answered by Jey on 2005-05-08 11:55:29: Activation and Passivation is appilicable for only Stateful session bean and Entity bean.   When Bean instance is not used for a while by client then EJB Container removes it from memory and puts it in secondary storage (often disk) so that the memory can be reused. This is called Passivation.  When Client calls the bean instance again then...

    Jey

    • May 8th, 2005

    Activation and Passivation is appilicable for only Stateful session bean and Entity bean.   When Bean instance is not used for a while by client then EJB Container removes it from memory an...

Showing Questions 221 - 230 of 230 Questions
First | Prev | Next | Last Page
Sort by: 
 | 
Jump to Page: