[Version 5.0.2 and later]TaskNameManager interface

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(); 

} 


Related tasks
Using the TaskNameManager interface



Searchable topic ID:   rapp_tasknamemanager
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/appprofile/ref/rapp_tasknamemanager.html

Library | Support | Terms of Use | Feedback