Skip to content

Latest commit

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Fn Project Native Java Function using GraalVM

Usage

  1. Build and deploy the function
fn deploy --app javafn --local

Note: Requires mvn CLI installed.

  1. Call the function
curl -d 'Leonardo' http://localhost:8080/r/javafn/native

FAQ: How to create a new Native Java Function using GraalVM?

  1. Create a new Java function with fn init --runtime java8.

  2. Add reflection.json file (see reflection.json example and GraalVM docs).

  3. Copy Dockerfile and change CMD to your entrypoint.

  4. Change your func.yaml to use docker runtime and add build commands.

Note: More advanced use cases using fnproject/fdk-java are also working.

Releases

Packages

Used by

Contributors

Languages