The TaskNameManager interface is available to all J2EE components using the following JNDI lookup:
java:comp/websphere/AppProfile/TaskNameManager
package com.ibm.websphere.appprofile; /** * The TaskNameManager is the programmatic interface * to the application profiling function. Using this interface, * programmers can set the current task name on the * thread of execution. The task name must have been * configured in the deployment descriptors as a task * reference associated with a task. The set task * name's scope is the duration of the method * invocation in the EJB and Web components and for * the duration of the client process, or until the * resetTaskName() method is invoked. */ public interface TaskNameManager { /** * Set the thread's current task name to the specified * parameter. The task name must have been configured as * a task reference with a corresponding task or the * IllegalTaskName exception is thrown. */ public void setTaskName(String taskName) throws IllegalTaskNameException; /** * Sets the thread's task name to the value that was set * at, or imported into, the beginning of the method * invocation (for EJB and Web components) or process * (for J2EE clients). */ public void resetTaskName(); }