    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:

- Accessing ISL/ISH process and then a WebLogic Enterprise server
- No persistence of state between calls to the SessionBean
- Application-defined exceptions

##

ConverterBean()

##

convert(String, String)
ejbActivate()
  This method is required by the EJB Specification, but is not used by this example.
ejbCreate()
  This method corresponds to the create method in the home interface ConverterHome.java.
ejbPassivate()
  This method is required by the EJB Specification, but is not used by this example.
ejbRemove()
  This method is required by the EJB Specification, but is not used by this example.
setSessionContext(SessionContext)
  Sets the session context.
toLower(String)
  Converts the string to lowercase
toUpper(String)
  Converts the string to uppercase

##

ConverterBean

     public ConverterBean()

##

ejbActivate

     public void ejbActivate()

  This method is required by the EJB Specification, but is not used by this example.

ejbRemove

     public void ejbRemove()

  This method is required by the EJB Specification, but is not used by this example.

ejbPassivate

     public void ejbPassivate()

  This method is required by the EJB Specification, but is not used by this example.

setSessionContext

     public void setSessionContext(SessionContext ctx)

  Sets the session context.

  Parameters:
    ctx - SessionContext Context for session

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

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

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

convert

     protected ConverterResult convert(String changeCase,
                                       String mixed) throws ProcessingErrorException

    All Examples  All WebLogic Enterprise Connectivity Examples This Package