Nazaj na Vsebine
  • Kumuluz
  • Cloud-native in DevOps
  • Open source
  • Podjetje

First version of the KumuluzEE AMQP project published

Blaž Mrak1 min branja

We are pleased to announce the first version of the KumuluzEE AMQP project. This version provides support for the RabbitMQ message broker.

KumuluzEE AMQP supports sending and receiving messages with a few simple annotations. Broker configuration can be defined with the configuration framework, which makes it fairly simple.

A few quick examples:

  • configuration:
kumuluzee:
  amqp:
    rabbitmq:
      hosts:
        - name: MQtest
          url: localhost
          queues:
            - name: testQueue
  • producing messages:
@AMQPProducer(host="MQtest", key="testQueue")
public String sendMessage(){
	return "I'm a message";
}
  • consuming messages:
@AMQPConsumer(host="MQtest", key="testQueue")
public void receiveMessage(String consumerMessage){
	System.out.println(consumerMessage);
}

A sample is available on GitHub: KumuluzEE AMQP sample with RabbitMQ. More details about the project can be found on the project home page.