com.ibm.websphere.samples.workarea.companycontextejb
Interface Bean
- All Superinterfaces:
- javax.ejb.EJBObject, java.rmi.Remote
public interface Bean
- extends javax.ejb.EJBObject
This is an Enterprise Java Bean Remote Interface
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
Method Summary |
java.lang.String[] |
test()
Bean's only remote method. |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome, getHandle, getPrimaryKey, isIdentical, remove |
test
java.lang.String[] test()
throws java.rmi.RemoteException
- Bean's only remote method. Note that the method takes no parameters in order
to clearly demonstrate the WorkArea service's function. The method will invoke a number
of methods on the WorkArea context, demonstrating both how and how NOT to use the WorkArea
service.
- Returns:
- java.lang.String []
Messages, essentially trace, are collected from each bean and returned as an array of strings
to be displayed by the client.
- Throws:
java.rmi.RemoteException