|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.workarea.companycontextejb.BeanImpl
public class BeanImpl
The Bean demonstrates simple usage of the WorkArea service. The Bean will do the following on its single remote method : - attempt to set a value into the imported WorkArea This will fail. Remote processes cannot write directly into imported WorkAreas. They must begin another one and delta on top of the imported WorkArea. - begin a new WorkArea - attempt to override the Company set by the client This will fail. Values that were set as read_only cannot be overridden. - successfuly override the Priority set by the client (will set to Tin) - invoke the BackendBean in the context of the Bean - complete the Company created in the Bean - look up the imported Company and Priority and compose a return message
Constructor Summary | |
---|---|
BeanImpl()
|
Method Summary | |
---|---|
void |
ejbActivate()
Framework methods. |
void |
ejbCreate()
Framework methods. |
void |
ejbPassivate()
Framework methods. |
void |
ejbRemove()
Framework methods. |
javax.ejb.SessionContext |
getSessionContext()
Framework methods. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
Framework methods. |
java.lang.String[] |
test()
Bean's only remote method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanImpl()
Method Detail |
---|
public void ejbActivate() throws javax.ejb.EJBException
ejbActivate
in interface javax.ejb.SessionBean
javax.ejb.EJBException
public void ejbCreate() throws javax.ejb.CreateException, javax.ejb.EJBException
javax.ejb.CreateException
javax.ejb.EJBException
javax.ejb.CreateException
public void ejbPassivate() throws javax.ejb.EJBException
ejbPassivate
in interface javax.ejb.SessionBean
javax.ejb.EJBException
public void ejbRemove() throws javax.ejb.EJBException
ejbRemove
in interface javax.ejb.SessionBean
javax.ejb.EJBException
public javax.ejb.SessionContext getSessionContext()
public void setSessionContext(javax.ejb.SessionContext ctx) throws javax.ejb.EJBException
setSessionContext
in interface javax.ejb.SessionBean
ctx
- javax.ejb.SessionContext
javax.ejb.EJBException
public java.lang.String[] test()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |