All Examples All WebLogic Enterprise Connectivity Examples EJB Simpapp Example
examples.wlec.ejb.simpapp.ConverterBean
ConverterBean is a stateless SessionBean. This bean illustrates:
Constructor Summary | |
ConverterBean()
|
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(examples.wlec.ejb.simpapp.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 |
Constructor Detail |
public ConverterBean()
Method Detail |
public void ejbActivate()
public void ejbRemove()
public void ejbPassivate()
public void setSessionContext(examples.wlec.ejb.simpapp.SessionContext ctx)
ctx
- SessionContext Context for sessionpublic void ejbCreate() throws examples.wlec.ejb.simpapp.CreateException
Converter
public ConverterResult toUpper(java.lang.String mixed) throws ProcessingErrorException
mixed
- String Input datapublic ConverterResult toLower(java.lang.String mixed) throws ProcessingErrorException
mixed
- String Input dataprotected ConverterResult convert(java.lang.String changeCase, java.lang.String mixed) throws ProcessingErrorException