Skip to content
Companion code to "Using JVM libraries in node.js" talk
Java JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
interop
src/main/java
test
.gitignore
README.md
docker-compose.yml
login-every.sh
node-jvm-launcher.sh
package.json
pom.xml

README.md

Using JVM libraries in node.js

This repository contains the companion code to the presentation.

Setup

  1. Install GraalVM 1.0.0-RC14
  2. Make sure that the node and npm binaries distributed with GraalVM is on the $PATH
  3. Make sure you have docker-compose installed
  4. run docker-compose up -d
  5. Make sure you have maven installed
  6. run npm install && npm run build

Contents:

./examples/bcrypt/app.js

This the example that is using jbcrypt to hash the password. You can start the server with npm --jvm run start:bcrypt

./examples/snippets/rabbitmq.js

The naive implementation of rabbitmq consumer. Start it with npm --jvm run start:rabbitmq. The easiest way to publish a message is to follow this link after you started the example.

./examples/snippets/rabbitmq-take-2.js

The naive implementation of rabbitmq consumer. Start it with npm --jvm run start:rabbitmq-take-2.

Async interop implementation

The java part is here and the js part is here. See slides for further details

You can’t perform that action at this time.