users@glassfish.java.net

Configuring server.policy with wildcards?

From: <glassfish_at_javadesktop.org>
Date: Thu, 15 May 2008 10:17:34 PDT

I am trying to grant permissions to a versioned webapp in glassfish, and I'd like to use a wildcard so that I don't have to maintain the version number each time a new release is created. Say the app is called mywebapp-1.0.0.war, in this scenario, what i've tried is this:

grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/mywebapp*/-" {
    permission .....
};

which doesn't work at all. Is there a way to use wildcards and the "-" to allow all jars in a webapp to have the permissions I need to grant?
[Message sent by forum member 'vinsonizer' (vinsonizer)]

http://forums.java.net/jive/thread.jspa?messageID=274629