Skip to content

rabbitmq/rabbitmq-graal-vm-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

RabbitMQ GraalVM Test

RabbitMQ Java libraries test on GraalVM.

RabbitMQ AMQP Java Client

The test consists in a simple RPC request-reply scenario that builds on top RabbitMQ AMQP Java client. The RPC server starts as a traditional Java application and the RPC client is a native image built with GraalVM.

Pre-requisites:

  • Local RabbitMQ broker running with all the defaults
  • GraalVM installed

Built the project:

./mvnw clean package

Start the RPC server:

./mvnw compile exec:java

In another shell, build the native image:

native-image -jar target/rabbitmq-graal-vm-test-full.jar

Launch the RPC client with the native image:

./rabbitmq-graal-vm-test-full

This should output in the console:

Using RabbitMQ AMQP Client 5.5.0
Sending: hello
Received: *** hello ***

Check in the first shell that the RPC server exited after it processed the request.

It is possible to use another version of the AMQP Java client:

./mvnw clean package -Damqp-client.version=5.4.3

License

(c) 2020-2023 Broadcom. All Rights Reserved. The term Broadcom refers to Broadcom Inc. and/or its subsidiaries.

Licensed under the Apache 2.0 license.

About

RabbitMQ Java libraries test on GraalVM

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages