The AspContext class exposes the following methods:
getApplication accesses the Application object.
getObjectContext accesses the ObjectContext object.
getRequest accesses the Request object.
getResponse accesses the Response object.
getServer accesses the Server object.
getSession accesses the Session object.
The AspContext class uses the getObjectContext method exposed by the com.ms.mtx.IObjectContext interface. Because the AspContext encapsulates the getObjectContext method, your Java file does not need to import the com.ms.mtx package and can simply import the aspcomp package. However, if your component must access the methods exposed by the ObjectContext object, you will need to import the com.ms.mtx package. For more details on ObjectContext, see the Microsoft® Transaction Server documentation in the Platform SDK section of the MSDN Library.