Config, setup, build, deploy application

Config before build

Configure OpenBanking gateway

Setup OpenBanking gateway url. You must change value if you create build for Lion or Elephant bank or for other endpoint.

opb-api-gateway/src/main/webapp/WEB-INF/web.xml
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
         version="3.0">
...         
     <context-param>
        <param-name>openbanking.logic.url</param-name>
        <param-value>http://lion.mlabs.dpc.hu/accessschema/ob</param-value>
        <!-- param-value>http://elephant.mlabs.dpc.hu/accessschema/ob</param-value -->
    </context-param>
    <!-- context-param>
        <param-name>openbanking.logic.mock.param-name</param-name>
        <param-value>x-mock-epic</param-value>
    </context-param>
    <context-param>
        <param-name>openbanking.logic.mock.param-value</param-name>
        <param-value>default</param-value>
    </context-param -->
...

Compile

Deploy

Copy created war file to destination. If docker is running it will be detect war file changed and automatically redeploy it. If you deploy application while docker stopped and just after start docker, then docker will not detect external changing. If you want redeploy application use must use "touch authenticationendpoint.war". Another solution you need modify docker images and remove "authenticationendpoint.war" application.

Redeploying webapp log entries:

Start

After you see the all container started, you must check logs and watch when finished really.

Check logs

Stop

Find the required process and terminate them.

Watch log file

Last updated

Was this helpful?