To my big surprise I was not able to find the official way to apply patches to a glassfish installation. I found several patches posted on the issue tracker and paying customers have access to tested and supported patch bundles, which are released outside of the regular release cycle. But even some extensive googling didn't easily reveal how to apply them.
Then luckily I found this discussion on the glassfish mailing list, which describes the process.
To make life easier for others and google to index this information, here is a brief recap:
- Create a directory
- Copy the jar with your patch into this directory
- Edit your
<glassfishroot>/domain/<domainname>/config/domain.xmland add attribute
- Restart your domain