All Examples  All WebLogic Enterprise Connectivity Examples This Package  

Class examples.wlec.ejb.simpapp.ConverterBean

java.lang.Object
   |
   +----examples.wlec.ejb.simpapp.ConverterBean

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


Constructor Index

 o ConverterBean()

Method Index

 o convert(String, String)
 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 ConverterHome.java.
 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 setSessionContext(SessionContext)
Sets the session context.
 o toLower(String)
Converts the string to lowercase
 o toUpper(String)
Converts the string to uppercase

Constructors

 o ConverterBean
 public ConverterBean()

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() throws CreateException
This method corresponds to the create method in the home interface ConverterHome.java. The parameter sets of these two methods are identical. When the client calls the ConverterHome.create method, the container allocates an instance of the EJBean and calls the ejbCreate method.

Throws: CreateException
if there is an error while initializing the IIOP pool
See Also:
Converter
 o toUpper
 public ConverterResult toUpper(String mixed) throws ProcessingErrorException
Converts the string to uppercase

Parameters:
mixed - String Input data
Returns:
ConverterResult Conversion Result
Throws: ProcessingErrorException
if there is an error while converting the string
 o toLower
 public ConverterResult toLower(String mixed) throws ProcessingErrorException
Converts the string to lowercase

Parameters:
mixed - String Input data
Returns:
ConverterResult Conversion Result
Throws: ProcessingErrorException
if there is an error while converting the string
 o convert
 protected ConverterResult convert(String changeCase,
                                   String mixed) throws ProcessingErrorException

All Examples  All WebLogic Enterprise Connectivity Examples This Package