Go to the number-api-client
folder and run mvn clean install
. This will build the jar with the client code to call
the number api resource.
Run the client invoker with:
ruby --jvm --vm.cp=../number-api-client/target/number-api-client.jar:../number-api-client/target/number-api-client-dependencies.jar --vm.Dcom.radcortez.graalvm.microprofile.number.api.client.NumberResourceClient/mp-rest/url=http://localhost:5001/number-api/ number-api-invoker.rb
Run the client invoker with:
graalpy --jvm --vm.cp=../number-api-client/target/number-api-client.jar:../number-api-client/target/number-api-client-dependencies.jar --vm.Dcom.radcortez.graalvm.microprofile.number.api.client.NumberResourceClient/mp-rest/url=http://localhost:5001/number-api/ number-api-invoker.py
$LLVM_TOOLCHAIN/clang number-api-invoker.c -lgraalvm-llvm -o number-api-invoker
lli --jvm --vm.cp=../number-api-client/target/number-api-client.jar:../number-api-client/target/number-api-client-dependencies.jar --vm.Dcom.radcortez.graalvm.microprofile.number.api.client.NumberResourceClient/mp-rest/url=http://localhost:5001/number-api/ number-api-invoker