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.
To declare a dependency to this client, use the following syntax.
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>
Add this dependency to your project’s build file:
The client Javadoc is available in this page. To use this client, first add the relevant annotation to your spring application class. Then autowire and call the needed services.