Access the work area service
Overview
The work area service provides a JNDI binding to an implementation of the UserWorkArea interface under the name...
java:comp/websphere/UserWorkAreaApplications that need to access the service can perform a lookup on that JNDI name, as shown in the following code example:
Example
import com.ibm.websphere.workarea.*; import javax.naming.*; public class SimpleSampleServlet { ... InitialContext jndi = null; UserWorkArea userWorkArea = null; try { jndi = new InitialContext(); userWorkArea = (UserWorkArea)jndi.lookup("java:comp/websphere/UserWorkArea"); } catch (NamingException e) { ... } }
What to do next
Use the begin method to create a new work area and associate it with the calling thread
Related Tasks
Manage the work area service