1.0.10 • Published 9 years ago

jvmpin v1.0.10

Weekly downloads
159
License
EPL-1.0
Repository
bitbucket
Last release
9 years ago

JVMPin

JVMPin provides a nodejs implementation of the nailgun protocol.

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 simply connect to the nailgun instance using:

var jvmpin = require('jvmpin');

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

// now to take over the currently running context by binding stdio
proc.stdout.pipe(process.stdout);
proc.stderr.pipe(process.stderr);

process.stdin.pipe(proc.stdin);
proc.on('exit', function(c) { process.exit(); })

For more information please consult the API Documentation

Contributors

Eric McCarthy Markus Hedvall

License

Copyright © 215 Benjamin Conlan

Distributed under the Eclipse Public License.

1.0.10

9 years ago

1.0.9

9 years ago

1.0.8

10 years ago

1.0.7

11 years ago

1.0.6

12 years ago

1.0.5

12 years ago

1.0.4

12 years ago

1.0.3

12 years ago

1.0.2

12 years ago

1.0.1

12 years ago