All Examples  All EJB Examples  This Package

Class examples.ejb.subclass.ParentBean


examples.ejb.subclass.ParentBean


public class ParentBean
ParentBean is a stateless SessionBean. This bean:


Variable Index

 o ctx
 

Constructor Index

 o ParentBean()
 

Method Index

 o ejbActivate()
This method is required by the EJB Specification, but is not used by this example.
 o ejbCreate()
This method corresponds to the create method in the home interface "ParentHome".
 o ejbPassivate()
This method is required by the EJB Specification, but is not used by this example.
 o ejbRemove()
This method is required by the EJB Specification, but is not used by this example.
 o log(String)
 
 o nonOverloadedMethod()
Sends back a pre-defined message identifying the method.
 o sayHello()
Sends back a pre-defined message identifying the method.
 o setSessionContext(SessionContext)
Sets the session context.

Field Detail

 o ctx

protected javax.ejb.SessionContext ctx

Constructor Detail

 o ParentBean

public ParentBean()

Method Detail

 o setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
          Sets the session context.
Parameters:
ctx - SessionContext Context for session
 o ejbActivate

public void ejbActivate()
          This method is required by the EJB Specification, but is not used by this example.
 o ejbPassivate

public void ejbPassivate()
          This method is required by the EJB Specification, but is not used by this example.
 o ejbRemove

public void ejbRemove()
          This method is required by the EJB Specification, but is not used by this example.
 o ejbCreate

public void ejbCreate() throws javax.ejb.CreateException
          This method corresponds to the create method in the home interface "ParentHome". The parameter sets of the two methods are identical. When the client calls ParentHome.create(), the container allocates an instance of the EJBean and calls ejbCreate().
Throws:
javax.ejb.CreateException - if there is a problem creating the bean
See Also:
examples.ejb.subclass.parent.Parent
 o sayHello

public java.lang.String sayHello()
          Sends back a pre-defined message identifying the method. This method is inherited and overloaded by the Child bean.
Returns:
String Message
 o nonOverloadedMethod

public java.lang.String nonOverloadedMethod()
          Sends back a pre-defined message identifying the method. This method is inherited but not overloaded by the Child bean.
Returns:
String Message
 o log

protected void log(java.lang.String s)


All Examples  All EJB Examples  This Package