examples.wlec.ejb.simpapp
Class ConverterBean
java.lang.Object
|
+--examples.wlec.ejb.simpapp.ConverterBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean
- public class ConverterBean
- extends java.lang.Object
- implements javax.ejb.SessionBean
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
- Author:
- Copyright (c) 1999-2000 by BEA Systems, Inc. All Rights Reserved.
Method Summary |
protected ConverterResult |
convert(java.lang.String changeCase,
java.lang.String mixed)
|
void |
ejbActivate()
This method is required by the EJB Specification,
but is not used by this example. |
void |
ejbCreate()
This method corresponds to the create method
in the home interface ConverterHome.java. |
void |
ejbPassivate()
This method is required by the EJB Specification,
but is not used by this example. |
void |
ejbRemove()
This method is required by the EJB Specification,
but is not used by this example. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Sets the session context. |
ConverterResult |
toLower(java.lang.String mixed)
Converts the string to lowercase. |
ConverterResult |
toUpper(java.lang.String mixed)
Converts the string to uppercase. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
simple_factory_ref
static SimpleFactory simple_factory_ref
ConverterBean
public ConverterBean()
convert
protected ConverterResult convert(java.lang.String changeCase,
java.lang.String mixed)
throws ProcessingErrorException
ejbActivate
public void ejbActivate()
- This method is required by the EJB Specification,
but is not used by this example.
- Specified by:
ejbActivate
in interface javax.ejb.SessionBean
ejbCreate
public void ejbCreate()
throws javax.ejb.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:
javax.ejb.CreateException
- if there is an error while initializing the IIOP pool- See Also:
Converter
ejbPassivate
public void ejbPassivate()
- This method is required by the EJB Specification,
but is not used by this example.
- Specified by:
ejbPassivate
in interface javax.ejb.SessionBean
ejbRemove
public void ejbRemove()
- This method is required by the EJB Specification,
but is not used by this example.
- Specified by:
ejbRemove
in interface javax.ejb.SessionBean
setSessionContext
public void setSessionContext(javax.ejb.SessionContext ctx)
- Sets the session context.
- Specified by:
setSessionContext
in interface javax.ejb.SessionBean
- Parameters:
ctx
- SessionContext context for session
toLower
public ConverterResult toLower(java.lang.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
toUpper
public ConverterResult toUpper(java.lang.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
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.