Config, setup, build, deploy application

Config before build

Configure bank access

VALUES ('2293e2cf-1c54-38cf-9934-6be4e94e60f8', 'Lion', 'Lion', 'Lion Bank Ltd.', '/images/bank/lion.svg',
'', '',
'PttPN26uJLQgvRjSrhmh5ShaqZga', 'gUPRoq7QUgkuBkdLIkLc1d6fJhka', '',
'lionfintech', '',

BANKS table structure

id UUID for identify a bank eg: 2293e2cf-1c54-38cf-9934-6be4e94e60f8 Use only internally. We just generate random UUID value.

name Name of the bank eg: Lion

shortName Short name of the bank eg: Lion

longName Long name of the bank eg: Lion Bank Ltd.

logoUrl url for the bank logo. eg: /images/bank/lion.svg Bank logo images can found at GUI application.

tokenUrl OAuth token url eg:

accounts_url Accounts API url, defined via Bank at Publisher site. eg:

client_id LionFintech application OAuth client id (consumer key). eg: PttPN26uJLQgvRjSrhmh5ShaqZga You can find at API Store. This value must be identical with WSO2 API Store values.

client_secret LionFintech application OAuth client secret (consumer secret). eg: gUPRoq7QUgkuBkdLIkLc1d6fJhka You can find at API Store. This value must be identical with WSO2 API Store values.

callback_url LionFintech OAuth callback url. After user OAuth authorization, the WSO2 call this url. In OAuth calls we must provide this information too, based on OAuth standard. eg: You can find at API Store. This value must be identical with WSO2 API Store values.

userName LionFintech username at WSO2 API Store. This username must be identical that user which signed up at API Store. eg: lionfintech

authorize_url OAuth authorization url. eg:

payments_url Payments API url, defined via Bank at Publisher site. eg:

gateway_url Consent handler API url eg:

Create environment

cd ~
mkdir lionfintech
mkdir lionfintech/db
mkdir lionfintech/config

Create and edit

# This Source Code Form is subject to the terms of the Mozilla
# Public License, v. 2.0. If a copy of the MPL was not distributed
# with this file, You can obtain one at
####Jetty specific properties########
# Number of acceptor threads to use.
# Maximum size in bytes of the HTTP post or put content.
# Number of selector threads to use.
spring.datasource.tomcat.min-idle=15 = org.hibernate.dialect.HSQLDialect = false = true

Create startup script (
$ nohup java -jar lionfintech/backend-0.0.1-SNAPSHOT.jar --spring.config.location=file:./lionfintech/config/ > lionfintech.log &


$ mvn clean package
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by$ReflectUtils$1 (file:/usr/share/maven/lib/guice.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,
WARNING: Please consider reporting this to the maintainers of$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] --------------< hu.dpc.openbank.fpp.lionfintech:backend >---------------
[INFO] Building LIONfintech backend 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] --- maven-clean-plugin:3.1.0:clean (default-clean) @ backend ---
[INFO] Deleting /home/tsipos/dev/dpchu/opb-lionfintech/target
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ backend ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] Copying 5 resources
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ backend ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 406 source files to /home/tsipos/dev/dpchu/opb-lionfintech/target/classes
[INFO] /home/tsipos/dev/dpchu/opb-lionfintech/src/main/java/hu/dpc/openbank/fpp/lionfintech/backend/controller/ /home/tsipos/dev/dpchu/opb-lionfintech/src/main/java/hu/dpc/openbank/fpp/lionfintech/backend/controller/ uses unchecked or unsafe operations.
[INFO] /home/tsipos/dev/dpchu/opb-lionfintech/src/main/java/hu/dpc/openbank/fpp/lionfintech/backend/controller/ Recompile with -Xlint:unchecked for details.
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ backend ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/tsipos/dev/dpchu/opb-lionfintech/src/test/resources
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ backend ---
[INFO] Changes detected - recompiling the module!
[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ backend ---
[INFO] --- maven-jar-plugin:3.1.2:jar (default-jar) @ backend ---
[INFO] Building jar: /home/tsipos/dev/dpchu/opb-lionfintech/target/backend-0.0.1-SNAPSHOT.jar
[INFO] --- spring-boot-maven-plugin:2.1.5.RELEASE:repackage (repackage) @ backend ---
[INFO] Replacing main artifact with repackaged archive
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.809 s
[INFO] Finished at: 2019-08-12T15:32:38+02:00
[INFO] ------------------------------------------------------------------------


Copy created jar file to destination.

$ scp opb-lionfintech/target/backend-0.0.1-SNAPSHOT.jar


$ ssh
$ ./


Find the required process and terminate them.

$ ps -ef | grep lionfintech
ec2-user 11573 1 6 12:11 pts/0 00:00:33 java -jar lionfintech/backend-0.0.1-SNAPSHOT.jar --spring.config.location=file:./lionfintech/config/
ec2-user 11636 11326 0 12:19 pts/1 00:00:00 grep --color=auto lionfintech
$ kill 11573

Watch log file

$ tail -f lionfintech.log