title: How can I set environment variables in glassfish for a specific application (or domain)
body: <p>Okay here is my setup:</p>
  
  <p>Running JRUBY (and a JRuby on Rails application) on a glassfish server (not gem!!!). Jruby has been installed via RVM (<a href="http://rvm.beginrescueend.com/" rel="nofollow noreferrer">http://rvm.beginrescueend.com/</a>).</p>
  
  <p>The RoR application has it's own gemset. (managed by rvm)</p>
  
  <p>Now my problem is, that I don't know how to tell glassfish to use a different GEM_HOME and GEM_PATH environment variable.</p>
  
  <p>I can set the JRuby Home (Configuration > Ruby Container), but it's not possible to specify another GEM_HOME or GEM_PATH, as far as i know.</p>
  
  <p>Please help!</p>