Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Online Practice Test
>
EJB
« Previous
Next »
Which is the method available in SessionContext interface?
Options
- afterBegin()
- getRollbackOnly()
- setSessionCotext()
- getUserTransaction()
CORRECT ANSWER : setSessionCotext()
Discussion Board
SessionContext
setSession context is a callback method called when the EJB container creates a stateless session bean instance to be placed in the ready pool. It is used as void setSessionContext(SessionContext ctx).
setSessionContext() uses the parameter javax.ejb.SessionContext, having a reference to the session context. The interface to the EJB container can be used to self-reference the session bean object. After the callback method EJB container tries to call another callback method ejbCreate() which can obtain the home interfaces of other EJBs invoked by session bean.
Rohit Sharma 08-20-2014 11:28 PM
« Previous
Next »
Write your comments
*
*
Email must be in the form someone@domain.com
*
*
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
Related Content
Java Beginner (11)
Java (39)
Java (40)
Java (22)
Java (30)
Java (25)
Java (20)
Java (20)
Core Java (20)
Core Java (10)
Core Java (72)
EJB (20)
JDBC (20)
Applet (20)
Struts (21)
Servlets (20)
Java Web Services (20)
Javascript (40)
J2EE (10)
jQuery (46)
Advertisement
▲