com.ibm.websphere.samples.workarea.companycontextejb
Interface BackendBean
- All Superinterfaces:
- javax.ejb.EJBObject, java.rmi.Remote
public interface BackendBean
- extends javax.ejb.EJBObject
This is an Enterprise Java Bean Remote Interface
The Backend represents in the sample business function known to the Bean
but not necessarily to the originating client. In this case, because the Bean is the
client to the BackendBean, the SampleBean began a new nested WorkArea and overrode the
client's priority. This is the intended use of WorkArea nesting. This bean makes nominal use of the
WorkArea service; it reads the two keys directly (priority from the nested WorkArea, company from the
original WorkArea begun from the client) without being aware of the composition of the work areas, then
reads all keys to illustrate another method from the WorkArea api.
Method Summary |
java.lang.String[] |
test()
BackendBean'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
- BackendBean's only remote method. Note that the method takes no parameters in order
to clearly demonstrate the WorkArea service's function. The method will merely retrieve
context from the WorkArea. Note that of the two parameters retrieved from the WorkArea, one
is defined in the outer scope and one in the inner; end users of the WorkArea (this bean) do
not have to worry about WorkArea context is composed, and the lookup is quite lightweight with
no declared exceptions.
The retrieveAllKeys method is used just to demonstrate one more method from the WorkArea api;
note that the method does recurse the stack of imported WorkAreas.
- 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