<?xml version="1.0" encoding="UTF-8"?>
<page>
  <created-at type="datetime">2008-08-12T21:00:52Z</created-at>
  <description>configure is not necessary for 1.3.x</description>
  <id type="integer">179</id>
  <name>JRubyWithNailgun</name>
  <number type="integer">6</number>
  <person-id type="integer">2629</person-id>
  <text>=JRuby Nailgun Support=

JRuby 1.3.0 and later support execution with [http://martiansoftware.com/nailgun/index.html Nailgun]. Nailgun allows you to start up a single JVM as a background server process and toss it commands from a fast native client almost eliminating JRuby's annoyingly slow start up time. To use Nailgun with JRuby:

# Download JRuby.
# Expand the JRuby archive (source or binary) and change to the distribution directory.
# If you are running on UNIX-like OS, build the nailgun server with either:
## &lt;code&gt;ant build-ng&lt;/code&gt;
## &lt;code&gt;cd tool/nailgun; configure; make&lt;/code&gt;
## &lt;code&gt;cd tool/nailgun; make&lt;/code&gt; (JRuby 1.3.x only)
# Start the JRuby nailgun server in the background: &lt;code&gt;jruby --ng-server &amp;&lt;/code&gt;
# You can now run JRuby commands through that server using the &lt;code&gt;jruby --ng&lt;/code&gt; command instead of &lt;code&gt;jruby&lt;/code&gt;

For more information, read [http://blog.headius.com/2009/05/jruby-nailgun-support-in-130.html]

==Note on development with Nailgun==
If you rebuild JRuby, be sure to restart the nailgun server; or else the client will get incorrect results.</text>
  <text-as-html>&lt;h1&gt;&lt;a name='JRuby_Nailgun_Support'&gt;&lt;/a&gt;JRuby Nailgun Support&lt;/h1&gt;
&lt;p&gt;
JRuby 1.3.0 and later support execution with &lt;a class='external' href=&quot;http://martiansoftware.com/nailgun/index.html&quot;&gt;Nailgun&lt;/a&gt;. Nailgun allows you to start up a single JVM as a background server process and toss it commands from a fast native client almost eliminating JRuby's annoyingly slow start up time. To use Nailgun with JRuby:

&lt;/p&gt;&lt;ol&gt;&lt;li&gt; Download JRuby.
&lt;/li&gt;&lt;li&gt; Expand the JRuby archive (source or binary) and change to the distribution directory.
&lt;/li&gt;&lt;li&gt; If you are running on UNIX-like OS, build the nailgun server with either:
&lt;ol&gt;&lt;li&gt; &lt;code&gt;ant build-ng&lt;/code&gt;&lt;/li&gt;&lt;li&gt; &lt;code&gt;cd tool/nailgun; configure; make&lt;/code&gt;&lt;/li&gt;&lt;li&gt; &lt;code&gt;cd tool/nailgun; make&lt;/code&gt; (JRuby 1.3.x only)
&lt;/li&gt;&lt;/ol&gt;&lt;/li&gt;&lt;li&gt; Start the JRuby nailgun server in the background: &lt;code&gt;jruby --ng-server &amp;amp;&lt;/code&gt;&lt;/li&gt;&lt;li&gt; You can now run JRuby commands through that server using the &lt;code&gt;jruby --ng&lt;/code&gt; command instead of &lt;code&gt;jruby&lt;/code&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;
For more information, read &lt;a class='external' href=&quot;http://blog.headius.com/2009/05/jruby-nailgun-support-in-130.html&quot;&gt;http://blog.headius.com/2009/05/jruby-nailgun-support-in-130.html&lt;/a&gt;

&lt;/p&gt;&lt;h2&gt;&lt;a name='Note_on_development_with_Nailgun'&gt;&lt;/a&gt;Note on development with Nailgun&lt;/h2&gt;
&lt;p&gt;If you rebuild JRuby, be sure to restart the nailgun server; or else the client will get incorrect results.&lt;/p&gt;</text-as-html>
  <updated-at type="datetime">2009-11-15T05:20:59Z</updated-at>
  <wiki-id type="integer">320</wiki-id>
</page>
