Once a request message is placed to the request queue from SCSB-CIRC, the request message will then be consumed by LAS mock Server. After doing some internal processing, LAS Mock Server will respond by sending a response message to the response queue. Later, SCSB-CIRC will consume the response message.
- Java 11
- Docker 19.03.13
-
external-las-application properties
- spring.datasource.url=
- spring.datasource.driver-class-name=
- spring.datasource.username=
- spring.datasource.password=
- spring.jpa.properties.hibernate.dialect=
#ActiveMQ
- activemq.broker.url=<activemq Brocker URL>
- activemq.jmx.service.url=<JMX URL>
- activemq.web.console.url=<Console URL>
- activemq.credentials=<user>
- activemq.jolokia.api.url= <jolokia URL>
- activemq.jolokia.api.queue.size.attribute=/QueueSize
-
Update the below Property Values in scsb_properteis_t table.
- UPDATE
recap
.scsb_properties_t
SETP_VALUE
='/lasapi/rest/lasapiSvc/lasStatus' WHEREP_KEY
='ims.server.status.endpoint'; - UPDATE
recap
.scsb_properties_t
SETP_VALUE
='/lasapi/rest/lasapiSvc/itemStatus' WHEREP_KEY
='ims.item.status.endpoint'; - UPDATE
recap
.scsb_properties_t
SETP_VALUE
='/lasapi/rest/lasapiSvc/retrieveItem' WHEREP_KEY
='ims.item.retrieval.order.endpoint'; - UPDATE
recap
.scsb_properties_t
SETP_VALUE
='/lasapi/rest/lasapiSvc/retrieveEDD' WHEREP_KEY
='ims.item.edd.order.endpoint'; - UPDATE
recap
.scsb_properties_t
SETP_VALUE
='/lasapi/rest/lasapiSvc/permanentlyRetrieveItem' WHEREP_KEY
='ims.item.permanent.withdrawal.direct.endpoint'; - UPDATE
recap
.scsb_properties_t
SETP_VALUE
='/lasapi/rest/lasapiSvc/permanentlyRetrieveItemIndirect' WHEREP_KEY
='ims.item.permanent.withdrawal.indirect.endpoint';
- UPDATE
Download the Project , navigate inside project folder and build the project using below command
sudo ./gradlew clean build -x test
Naviagte Inside project folder where Dockerfile is present and Execute the below command
sudo docker build -t phase4-scsb-las-mock-server .
User the below command to Run the Docker
sudo docker run --name phase4-scsb-las-mock-server -v -p -e "ENV= -Dorg.apache.activemq.SERIALIZABLE_PACKAGES="*" -Dspring.config.location= " -d phase4-scsb-las-mock-server