Okay here is my setup:
Running JRUBY (and a JRuby on Rails application) on a glassfish server (not gem!!!). Jruby has been installed via RVM (http://rvm.beginrescueend.com/).
The RoR application has it's own gemset. (managed by rvm)
Now my problem is, that I don't know how to tell glassfish to use a different GEM_HOME and GEM_PATH environment variable.
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.
Please help!