Assembling applications that use asynchronous beans work managers
Before you begin
Your administrator needs to configure at least one work manager using the administrative console.
Overview
If your application references one or more logical work managers, the logical work managers must be bound to one or more physical work managers using an assembly tool, such as the Application Server Toolkit (AST) or Rational Web Developer.
The CommonJ 1.1 interfaces are supported. Both asynchronous beans and CommonJ interfaces can use one configuration work manager object. The type of interface implemented is resolved during the JNDI lookup time. The type of interface used is determined by the one specified in the resource-reference, instead of the one specified in the configuration object. So, there can be one resource-reference for each interface, per configuration object. Each resource-reference lookup returns the appropriate type of instance. For example, there are two resource-references defined for the wm/MyWorkManager: wm/ABWorkMgr and wm/CommonJWorkMgr. The WAS run time returns the correct interface for each resource-reference lookup.
Procedure
- Declare a resource reference for each work manager (required action by the application developer). This action results in an EAR file. For more information on resource references, see the topic References.
- Use an assembly tool, such as the Application Server Toolkit (AST) or Rational Web Developer to bind each resource reference to a physical work manager.
- Add a resource reference with the type com.ibm.websphere.asynchbeans.WorkManager to the application deployment descriptor. The application then can look up this work manager using its resource reference name in java:comp. The assembly tool or Rational Application Developer then can specify which resource references are bound to a physical work manager.
Note: Use the same previous steps to configure data sources.
See Also
References
Assembly tools
Related Tasks
Using asynchronous beans
Assembling applications that use a CommonJ WorkManager
Assembling applications that use timer managers