AI Content Chat (Beta) logo

Appendix B SAmple Code Note that static data is configured, but you can write your own logic in AccountContoller and get the data from the database by integrating the database using a JPA module. To run the ABC banking transaction services, take the following steps: Step 1: Navigate to the source code. Intergartion_Framework\ABC_Bank_Integration\Microservices\ transactionService Step 2: Execute “mvnspring-boot:run” to start the services. Step 3: Hit the following URL to check the configurations: http://localhost:8082/transaction/findall The response will be: {"list":[{"accountNumber":10001,"transactionId":"800", "transactionAmount":"300","balanceAmount":"200"}, {"accountNumber":10002,"transactionId":"800", "transactionAmount":"300","balanceAmount":"200"}, {"accountNumber":10003,"transactionId":"800", "transactionAmount":"300","balanceAmount":"200"}]} Note the following: • Static data is configured, but you can write you own logic in TransactionController and get the data from the database by integrating the database using JPA module. • You can replace microservices with Apache Camel services by integrating the endpoints in an Angular application. • You can open these microservices projects in Intellij IDEA IDE. • You can access the Eureka Server URL and can check the services and instance registered with Eureka Server as shown in Figure B-20. 361

Building Digital Experience Platforms - Page 371 Building Digital Experience Platforms Page 370 Page 372