title: `rails console` in Java EE application
body: <p>I came to Java from the world of Rails. Ruby on Rails has one cool feature, called <code>rails console</code>. It loads the entire environment and lets you play with a dynamic interpreter (<code>irb</code>), so you can execute any code in the context of your application and intermediately get result.</p>
  
  <p>Is it possible to do similar with Java EE? i.e. connect to your application server and execute dynamic code in its context? For example, in the Groovy programming language.</p>
  
  <p>I use Java EE 5 with GlassFish 2.1</p>