Java Spring AMQP Client

This client allows an application to listen for job events, like a new solution coming for example. It also allows to wait for a job solution, through a blocking method. It is based on the Spring AMQP implementation using RabbitMQ. The current implementation supposes that the same RabbitMQ instance is used by the application using the client and Optimization Server.

Dependency declaration

To declare a dependency to this client, use the following syntax.

Maven users

Add this dependency to your project’s POM:

<dependency>
  <groupId>com.decisionbrain</groupId>
  <artifactId>optimserver-client-amqp-spring</artifactId>
  <version>PROJECT_VERSION</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project’s build file:

compile "com.decisionbrain:optimserver-client-amqp-spring:PROJECT_VERSION"

Usage

The client Javadoc is available in this sub-section. To use this client, first add the relevant annotation to your spring application class. Then autowire and call the needed services.