You can also specify that the permissions apply only to a specific application in a specific web container. For example, the following statement grants security permissions only to Access Manager deployed on Sun Java System Application Server. For other web containers, refer to the respective web container documentation for more information.
// ADDITIONS FOR Access Manager on Sun Java System Application Server grant codeBase "file:\${com.sun.aas.instanceRoot}/applications/j2ee-modules/amserver/-" { ... // Permissions from the previous example }
Also, if you deploy Access Manager using a name other than amserver, change that name in the grant statement.