2.2.3 API Gateway Router Deployment
- Get the api-gateway router jar file from the
obpm_services tar zip file. Copy the jar file from
<extracted
folder>/obpm_services/obpm-apigateway-router/obpm-apigateway-router-9.6.0.jar
and place into deployment path in Linux for ex:
/scratch/obpm_installer_router/deployables/apps/obpm
- Execute java -jar obpm-apigateway-router_name
with parameters listed
below:
obpm-apigateway-router_name = “obpm-apigateway-router-9.6.0.jar”
Parameters to maintain in api-gateway-router deployment file | Comments |
---|---|
java -jar obpm-apigateway-router_name | Mention the router.jar name |
--plato.services.config.uri=http:/0.0.0.0:0000 | Provide the host name and config-service deployed port |
--plato.service.logging.path=log_path | Provide the path for router log |
-plato.services.eureka.uri=http://0.0.0.0:0000 | Provide the host name and discovery-service deployed port |
--plato.services.discovery.port=0000 | Provide the router unique port |
--logging.level.reactor.netty=DEBUG | -- |
--logging.level.org.springframework.cloud.gateway=DEBUG | -- |
--logging.level.org.springframework.web=DEBUG | -- |
Sample router deployment sh file content:
export JAVA_HOME="/scratch/obpm/jdk-11.0.14" export PATH=$JAVA_HOME/bin:$PATH java -jar obpm-apigateway-router-9.6.0.jar --plato.services.config.uri=http://ip-address:port --plato.service.logging.path=/scratch/work_area/logs_router --plato.services.eureka.uri=http://ipadress:port --plato.services.discovery.port=5116 --logging.level.reactor.netty=DEBUG --logging.level.org.springframework.cloud.gateway=DEBUG --logging.level.org.springframework.web=DEBUG
Parent topic: Deploying Application in Oracle WebLogic