All Examples  All EJB Examples  This Package

Class examples.ejb.subclass.parent.ParentBean

java.lang.Object
   |
   +----examples.ejb.subclass.parent.ParentBean

public class ParentBean
extends Object
implements SessionBean
ParentBean is a stateless SessionBean. This bean illustrates:

Author:
Copyright (c) 1998 by WebLogic, Inc. All Rights Reserved.
Copyright (c) 1998-1999 by BEA WebXpress. All Rights Reserved.

Variable Index

 o ctx
 o props

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 parentMethodOnly()
Sends back a pre-defined message identifying the method.
 o parentSaysHello()
Sends back a pre-defined message identifying the method.
 o setSessionContext(SessionContext)
Sets the session context.

Variables

 o ctx
 protected transient SessionContext ctx
 o props
 protected transient Properties props

Constructors

 o ParentBean
 public ParentBean()

Methods

 o ejbActivate
 public void ejbActivate()
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 ejbPassivate
 public void ejbPassivate()
This method is required by the EJB Specification, but is not used by this example.

 o setSessionContext
 public void setSessionContext(SessionContext ctx)
Sets the session context.

Parameters:
ctx - SessionContext Context for session
 o ejbCreate
 public void ejbCreate()
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().

See Also:
Parent
 o parentSaysHello
 public String parentSaysHello()
Sends back a pre-defined message identifying the method. This method is inherited and overloaded by the Child bean.

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

Returns:
String Message

All Examples  All EJB Examples  This Package