Context.xml Support in GlassFish
By pelegri on May 23, 2007
This was at least partially addressed by RFE 2439 and, to spread the word out, Amy just described the facility in some detail. The solution in GlassFish allows global configuration as well as per-virtual host configuration.
Check it out and see if this works for your needs. If not, post on the forum/ email thread.