+

Search Tips   |   Advanced Search

Assemble applications that use asynchronous beans work managers

When a work manager has been configured, if it references a logical work manager it must be bound to a physical work manager using an assembly tool. Then resources can be created and bound to a physical work managers.

Your administrator needs to configure at least one work manager using the administrative console.

If the 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.

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 WebSphere Application Server run time returns the correct interface for each resource-reference lookup.

  1. 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, refer to the References topic.

  2. Use an assembly tool to bind each resource reference to a physical work manager.

  3. 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. : Use the same previous steps to configure data sources.


Related concepts

  • References in application deployment descriptor files
  • Development and assembly tools


    Related tasks

  • Use asynchronous beans
  • Assembling applications that use a CommonJ WorkManager
  • Assembling applications that use timer managers