|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.techsamp.security.jaas.jaasloginejb.SampleBeanBean
public class SampleBeanBean
Bean implementation class for Enterprise Bean: SampleBean. The SampleBean class is a stateless session Enterprise JavaBean (EJB) that returns the caller's security identity. The EJB is secured by a J2EE security role.
SampleBean
,
SampleBeanHome
,
Serialized FormConstructor Summary | |
---|---|
SampleBeanBean()
|
Method Summary | |
---|---|
void |
ejbActivate()
The activate method is called when the instance is activated from its "passive" state. |
void |
ejbCreate()
Executed upon bean instance creation. |
void |
ejbPassivate()
The passivate method is called before the instance enters the "passive" state. |
void |
ejbRemove()
A container invokes this method before it ends the life of the session object. |
java.lang.String |
getCallerInfo()
Returns the caller's security identity. |
javax.ejb.SessionContext |
getSessionContext()
Gets the associated session context. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Sets the associated session context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleBeanBean()
Method Detail |
---|
public javax.ejb.SessionContext getSessionContext()
public void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext
in interface javax.ejb.SessionBean
ctx
- Specifies the context for this session.public void ejbCreate() throws javax.ejb.CreateException
No action is required by the SampleBean bean.
javax.ejb.CreateException
public void ejbActivate()
ejbPassivate
method.
No action is required by the SampleBean bean.
ejbActivate
in interface javax.ejb.SessionBean
public void ejbPassivate()
ejbActivate
method.
No action is required by the SampleBean bean.
ejbPassivate
in interface javax.ejb.SessionBean
public void ejbRemove()
No action is required by the SampleBean bean.
ejbRemove
in interface javax.ejb.SessionBean
public java.lang.String getCallerInfo()
RemoteException
- Thrown if the remote method call fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |