1. A method for managing access to a resource within an aspect-oriented environment, the method comprising: using a thread to execute an application within a container; initializing another thread to execute an aspect outside of the container; and communicating to the other thread a context code enabling access to a resource by the aspect.