{info} Reactor Web Services provide endpoints for reactor operations.
Reactor Web Services make possible to reach the chemical functionality provided by Chemaxon's product Reactor.
Reactor Web Services application is available in two modes:
In microservices system mode, the Reactor Web Services runs together with the Config, Discovery and Gateway services. These three services are mandatory, and optionally other services can also be part of the system. All configuration must be done in the Config service.
The default configuration applies to the microservices system mode.
The web application runs on host <server-host> and listens on port <gateway-server-port>.
In standalone web application mode, the Reactor Web Services runs alone, without the Config, Discovery and Gateway services (however, the installer installs them as well).
The default configuration must be changed according to the standalone web application mode; set
eureka.client.enabled=false
in application.properties file, and
up to version 22.2.0
spring.cloud.config.failFast=false
and spring.cloud.config.enabled=false
in bootstrap.properties file
from version 22.9.0
set spring.cloud.config.enabled=false
and comment out line spring.config.import=
in application.properties file.
All configuration must be done in the Reactor Web Services module.
The web application runs on host <server-host> and listens on port <gateway-server-port>.
See here.
See here
See here.
Module is installed into folder: jws/jws-reactor/
See here.
See here.
Default configuration:
application.properties | |
---|---|
server.port=8067 | |
logging.file.name=../logs/jws-reactor.log | |
spring.config.import=configserver:${CONFIG_SERVER_URI:http\://localhost\:8888}?fail-fast=true&max-attempts=100&max-interval=60000&multiplier=1.2&initial-interval=3000 | Added in version 22.6.0. |
eureka.client.enabled=true | set eureka.client.enabled=false to switch to standalone Reactor Web Services application mode |
bootstrap.properties |
---|
spring.cloud.config.failFast=true #Removed in version 22.6.0. spring.cloud.config.uri=${CONFIG_SERVER_URI:http\://localhost\:8888/} #Removed in version 22.6.0. spring.cloud.config.retry.initialInterval=3000 #Removed in version 22.6.0. spring.cloud.config.retry.multiplier=1.2 #Removed in version 22.6.0. spring.cloud.config.retry.maxInterval=60000 #Removed in version 22.6.0. spring.cloud.config.retry.maxAttempts=100 #Removed in version 22.6.0. |
For more configuration options, see the Spring documentation page.
Prerequisites in case of microservices system mode:
Config service is running
Discovery service is running
Gateway service is running
Run the service in command line in folder jws/jws-reactor:
jws-reactor-service.exe --install
jws-reactor-service.exe --start
(on Windows in administrator's terminal)
jws-reactor-service start
(on Linux)
or
run-jws-reactor.exe
(on Windows)
Find and try out the API on the Swagger UI.
Mode | URL of Swagger UI | Default URL of Swagger UI |
---|---|---|
Microservices system | <serverhost>:<gateway-port>/jws-reactor/API/ | localhost:8080/jws-reactor/API/ |
Standalone web application mode | <serverhost>:<server-port>/API/ | localhost:8067/API/ |
For detailed description check out the JWS Reactor demo site:
https://jchem-microservices.chemaxon.com/jws-reactor/api/index.html
The guidelines, examples on the Demo site or on the Swagger UI API documentation of your installed module display the methods and syntax implemented for reaching the functionalities of Reactor product.
Reactor
Reactor controller provides method to create mono- or bimolecular reactions from specified reactants based on a specified reaction scheme using different options.
See the details in the API.