jvmpin / README.md

JVMPin

JVMPin provides a nodejs implementation of the nailgun protocol providing communication to nailgun hosted java applications.

Information about nailgun can be found at http://www.martiansoftware.com/nailgun/. While the nailgun native library and java dependencies can either be found at sourceforge or resolved via the maven repository using the dependency:

<dependency>
    <groupId>com.martiansoftware</groupId>
    <artifactId>nailgun</artifactId>
    <version>0.7.1</version>
</dependency>

Usage

The JVMPin library can be installed via npm by adding the following to your package.json's dependencies or devDependencies sections:

"dependencies": {
    "jvmpin": "1.x"
}

You will need to start your nailgun instance in another process (this is a task I leave to the reader.

Then simple connect to the nailgun instance using:

var jvmpin = require('jvmpin');

jvmpin.createConnection(1234, 'localhost').spawn('your.main.Class');

This will bind the STDIO streams to the executing process. (something that is yet to be corrected).

For more information please consult the API Documentation

License

Copyright © 2012 Foldr

Distributed under the Eclipse Public License.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.