Development Environment

This document explains how to install the modernized application in a Windows development environment and run the application in a debug mode. All examples are based on Card Demo AWS Blu Insights L3 certification workshop. To run this guide Card Demo (COBOL) code should have been modernized and ready to download from Blu Insights Transformation Center. For more details on the workshop see: https://catalog.workshops.aws/aws-blu-age-l3-certification-workshop/en-US/introduction

Prerequisites

AWS Blu Age Standard Delivery environment installed on your AWS Account.

Windows Development environment set up:

Default Windows tools installation

  • Maven: Used to compile & package the modernized application.
    • Located in C:\Apache\maven-3.9
  • Apache Tomcat: Java server to host the modernized application.
    • Located in C:\Apache\Tomcat10
  • Eclipse: developer user interface to run the modernized application.
  • PostgreSQL server with PgAdmin
  • Amazon Corretto Java 17 SDK

Configuration steps: Maven

  • Maven, make sure maven is properly installed and configured. Open a windows command line and run: mvn --version

This should output (it will also validate the Java installation):

Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)  
Maven home: C:\Apache\maven-3.9  
Java version: 17.0.12, vendor: Amazon.com Inc., runtime: C:\Program Files\Amazon Corretto\jdk17.0.12_7  
Default locale: en_US, platform encoding: Cp1252  
OS name: "windows server 2022", version: "10.0", arch: "amd64", family: "windows"
  • Setting up maven repository: in AWS Web Console got to CodeArtifact and the select maven repository:

aws-sde-dev-environment_00.png

aws-sde-dev-environment_01.png

aws-sde-dev-environment_02.png

  • Click on “View connection instructions”, this page give all details for maven to connect to CodeArtifact.

aws-sde-dev-environment_03.png

  • Build the settings.xml (located in C:\Users\Administrator.m2\settings.xml). This file will be used by maven to fetch all jars & pom files.

Sample settings.xml (make sure to replace project name & account id, highlighted in yellow below)

<settings>  
<mirrors>  
<mirror>  
<id>card-demo-maven-central-store</id>  
<name>card-demo-maven-central-store</name>  
<url>https://card-demo-851725413617.d.codeartifact.eu-west-3.amazonaws.com/maven/maven-central-store/</url>  
<mirrorOf>*</mirrorOf>  
</mirror>  
</mirrors>  
<servers>  
<server>  
<id>card-demo-maven-central-store</id>  
<username>aws</username>  
<password>  
`${env.CODEARTIFACT_AUTH_TOKEN}`  
</password>  
</server>  
</servers>  
<profiles>  
<profile>  
<id>card-demo-maven-central-store</id>  
<repositories>  
<repository>  
<id>card-demo-maven-central-store</id>  
<url>https://card-demo-851725413617.d.codeartifact.eu-west-3.amazonaws.com/maven/maven-central-store/</url>  
</repository>  
</repositories>  
</profile>  
</profiles>  
<activeProfiles>  
<activeProfile>card-demo-maven-central-store</activeProfile>  
</activeProfiles>  
</settings>
  • CodeArtifact credentials, this will replace ${env.CODEARTIFACT_AUTH_TOKEN}
    Sample getting authorization token. This comand is obtained from AWS web console, when selecting the repository in CodeArtifact service:
FOR /F "tokens=*" %g IN ('aws codeartifact get-authorization-token --domain card-demo --domain-owner 851725413617 --region eu-west-3 --query authorizationToken --output text') do (SET CODEARTIFACT_AUTH_TOKEN=%g)

Note the environment variable does not work with Eclipse. It’s simpler to replace ${env.CODEARTIFACT_AUTH_TOKEN} directly with the token in settings.xml.

To directly copy to clipboard the token run the command: echo %CODEARTIFACT_AUTH_TOKEN% | clip.

Note Eclipse does not interpret the environment variable %CODEARTIFACT_AUTH_TOKEN% it’s better to replace it in settings.xml before opening Eclipse.

Installing the modernized code

As a prerequisite, the application code must be transformed in AWS Blu Age Blu Insight and uploaded to Windows instances. The samples provided below are based on the result of Blu Insight L3 Workshop: https://catalog.workshops.aws/aws-blu-age-l3-certification-workshop/en-US/introduction

Prerequisites

Downloading code from AWS Blu Insights

Once the existing application is transformed it can be downloaded and installed on the Windows instance. Depending on the requirement, AWS Blu Insights can be directly access from Windows instance inside the AWS Account VPC or downloaded from to another external environment and copied to Windows instance.

In case there is no access to AWS Web Console from the AWS Account VPC, Blu Insights login URL can be obtain using AWS CLI: https://docs.aws.amazon.com/cli/latest/reference/m2/get-signed-bluinsights-url.html

Example to get login URL from AWS CLI:
On your laptop copy & paste AWS temporary credentials in a terminal console and then execute the following command:

aws m2 get-signed-bluinsights-url —region us-east-1

This will output a login URL:

{  
"signedBiUrl": "[https://bluinsights.aws/app/api/auth/console-redirect/](https://bluinsights.aws/app/api/auth/console-redirect/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcm4iOiJhcm46YXdzOnN0czo6MjUyODA3MTY2OTgwOmFzc3VtZWQtcm9sZS9BZG1pbi9uZXZldXhqLUlzZW5nYXJkIiwicmVnaW9uIjoidXMtZWFzdC0xIiwiZXhwIjoxNzMwMDIyMDA2fQ.td97WcV5mVlMk8i6GNS8Wfkv7fPPq0VGVMb3ARLEm9Q)<TOKEN>"  
}

This URL can be then reused in AWS Account Windows instance (providing the *.bluinsights.aws URI is accessible from the AWS VPC)

From AWS Blu Insights download the transformed code.

Select “Transformation Center”, then your project.

aws-sde-dev-environment_04.png

aws-sde-dev-environment_05.png

Then select transform, then select all from your “transformation” and click download.

aws-sde-dev-environment_06.png

aws-sde-dev-environment_07.png

Place the archive on Windows file system, and un-zip it.

Note copy the archive in a folder structure as the archive contains long name and could lead to path limit error when extracting copying. For example: C:\dev\bi.

Clone pre-configured Repository from GitLab.

In these steps, pre-configured git repository is cloned on Windows instance and the transformed code is placed in those repositories and then pulish to GitLab.

Setting up Gitlab accounts

Using “root” credential in Gitlab, create an account (different accounts will be needed for each team member).

  • Get the root account from AWS Secrets Manager: /gitlab/root.
  • Login in https://gitlab.bluage.local
  • Add a user, click “Admin Area”
  • After the “new user” is created add them to the following projects: modern-application, server, .

aws-sde-dev-environment_08.png

Setting up repository access with SSH credential

  • Logout and re-log with the new user.
  • Open a windows command and create an SSH key in Windows instance using: ssh-keygen -t ed25519 -C "my user name". Then copy the public SSH key from C:\Users\Administrator\.ssh\id_ed25519.pub
  • In GitLab search for “User Settings”, select menu “SSH Keys” (https://gitlab.bluage.local/-/user_settings/profile)

aws-sde-dev-environment_10.png

Click on new user:

aws-sde-dev-environment_11.png

Enter the user details.

Note the new user will need to enter a new password at first login.

aws-sde-dev-environment_12.png

aws-sde-dev-environment_13.png

aws-sde-dev-environment_14.png

Save the SSH Key

Cloning repositories

In these steps you will need to clone 3 repositories: modern-application, server and tests-cases.

  • In GitLab for each project:
    • aws-sde-dev-environment_15.png
    • Copy the clone URL
    • aws-sde-dev-environment_16.png
    • In windows open a command window in correct folder structure (for example: C:\dev\git) do git clone:

Sample commands to clone all repositories:

git clone git@gitlab.bluage.local:developers/gitlab-card-demo-modern-application.git

Getting “AWS Blu Age Runtime”

Two different Blu Age Runtime exist, one for developers which will run 2 hours consecutively, and the Blu Age Runtime which is billable per AWS Account. Make sure to register in Blu Insights Toolbox for both runtime. To access these features AWS Blu Insights L3 certification is required.

  • Log into Blu Insights (L3 certified)
  • ToolBox > Request:
  • aws-sde-dev-environment_17.png

Once the Request AWS Blu Age Tools is approved, download the archive on Windows environment and unzip it.

For developers environment, please follow instructions in this link: https://bluinsights.aws/docs/dev-special-bluage-runtime

Example, download developer runtime and uncompress it into C:\dev\gapwalk

List content for a version:

C:\dev\gapwalk>aws s3 ls s3://toolbox-dev-runtime/4.4.0-alpha.16/  
[2024-09-23 10](tel:2024092310):55:08 175681549 gapwalk-4.4.0-alpha.16-dev.tar.gz  
[2024-09-23 10](tel:2024092310):55:10 13728052 gapwalk-runtime-4.4.0-alpha.16-javadoc.zip  
[2024-09-23 10](tel:2024092310):55:11 6891372 gapwalk-webapps-4.4.0-alpha.16-javadoc.zip

Download runtime:

C:\dev\gapwalk>aws s3 cp s3://toolbox-dev-runtime/4.4.0-alpha.16/ . --recursive  
download: s3://toolbox-dev-runtime/4.4.0-alpha.16/gapwalk-runtime-4.4.0-alpha.16-javadoc.zip to .\gapwalk-runtime-4.4.0-alpha.16-javadoc.zip  
download: s3://toolbox-dev-runtime/4.4.0-alpha.16/gapwalk-webapps-4.4.0-alpha.16-javadoc.zip to .\gapwalk-webapps-4.4.0-alpha.16-javadoc.zip  
download: s3://toolbox-dev-runtime/4.4.0-alpha.16/gapwalk-4.4.0-alpha.16-dev.tar.gz to .\gapwalk-4.4.0-alpha.16-dev.tar.gz

Unzip with 7-zip the runtime (1/2 step).

aws-sde-dev-environment_18.png

And then extract the tar archive with 7-zip (2/2 step):

aws-sde-dev-environment_19.png

Install the runtime locally in maven local repository. Before starting this operation CodeArtifact credentials must be obtain (see Configuration steps: Maven).

Change Dir to C:\dev\gapwalk\gapwalk-4.4.0-alpha.16-dev.tar\velocity\shared and launch the command: _install-velocity-runtime.cmd

Modernized application code installation & compilation

Copy the uncompressed archive previously downloaded from AWS Blu Insights (see Downloading code from AWS Blu Insights) into the cloned code from gitlab-<application name>-modernized-application:

aws-sde-dev-environment_20.png

aws-sde-dev-environment_21.png

Open a command line and run maven install: C:\dev\git\gitlab-card-demo-modern-application\card-pom>mvn install

It should end with:

[INFO] Reactor Summary for card-demo-pom 1.0.0:  
[INFO]  
[INFO] card-demo-pom ...................................... SUCCESS [ 0.380 s]  
[INFO] card-demo-tools .................................... SUCCESS [ 6.747 s]  
[INFO] card-demo-entities ................................. SUCCESS [ 14.996 s]  
[INFO] card-demo-service .................................. SUCCESS [ 8.457 s]  
[INFO] card-demo-web ...................................... SUCCESS [04:32 min]  
[INFO] ------------------------------------------------------------------------  
[INFO] BUILD SUCCESS  
[INFO] ------------------------------------------------------------------------  
[INFO] Total time: 05:03 min  
[INFO] Finished at: 2024-10-28T09:07:34Z  
[INFO] ------------------------------------------------------------------------

Commit the code and push to GitLab

Before committing and pushing code, verify there is a .gitignore file at the repository root. Below is an example:
C:\dev\git\gitlab-card-demo-modern-application\.gitignore

node_modules  
target  
.settings  
.project  
.classpath  
dist  
cache

In the same folder C:\dev\git\gitlab-card-demo-modern-application. Run the git commands:

git add . 
git commit -m “Initial commit, adding code”
git push

Check the code on GitLab, the default branch is master.

aws-sde-dev-environment_22.png

Installing modernized application in Eclipse

Before starting make sure maven settings.xml is properly configured with CodeArtifact authentication token (see Configuration steps: Maven)

Launch Eclipse Spring Tool Suite and select a workspace (C:\dev\wks)

aws-sde-dev-environment_23.png

Configure Eclipse Java environment & Apache Tomcat 10.1

Java configuration

In Eclipse open Windows > Preferences:

  • Java > Installed JREs
  • Click Add..
  • Standard VM:
  • aws-sde-dev-environment_24.png
  • Select Amazon Coretto Java 17 folder:
  • aws-sde-dev-environment_25.png
  • Select this version of Java by default:
  • aws-sde-dev-environment_26.png

Apache Tomcat configuration

In Eclipse open Windows > Preferences:

  • Select Server > Runtime Environment
  • Click Add... and select Apache Tomcat v10.1
  • aws-sde-dev-environment_27.png
  • Select Apache Tomcat 10
  • Click on Browse... then select folder: C:\Apache\Tomcat10
  • aws-sde-dev-environment_28.png
  • Click Finish

    Configure Apache Tomcat Server

In Eclipse menu select Windows > View > Others... Then select “Servers”

aws-sde-dev-environment_29.png

aws-sde-dev-environment_30.png

In the view Servers, click on the link to create a new “Server” project:

aws-sde-dev-environment_31.png

Select Apache Tomcat 10.1

aws-sde-dev-environment_32.png

Click Finish, a new project “Server” should appear in the project or package explorer.

aws-sde-dev-environment_33.png

Server configuration for modernized application

Server creation & initial setup

From the “Servers” view double click on the server to open the server property page.

  • Change the server timeout, and save.
  • aws-sde-dev-environment_34.png
  • Set a port for “Tomcat admin port”: 9090
  • aws-sde-dev-environment_35.png
  • Modify the project structure from the package explorer. Create imbricated folders tomcat/config and move all configuration files from “Tomcat v10.1 Server at localhost-config”.
  • aws-sde-dev-environment_36.png
  • Update the server configuration path in the server property page. Click on the “browse...” button and then select the new “tomcat/config” folder.
  • aws-sde-dev-environment_37.png
  • Remove the old folder “Tomcat v10.1 Server at localhost-config”. The result should be as follow:
  • aws-sde-dev-environment_38.png
  • Save the “Server property page”

Server configuration with AWS Blu Age Runtime & Database

In those steps, the runtime is copied and database is configured.

Note: When editing Tomcat’s configuration make sure the Tomcat Server’s property page is closed and saved. If the property is opened and saved, it will overwrite the custom values.

Please double check everything, any miss configuration will cause issues when launching Tomcat server.
Create base folder and copying Runtime libraries:

  • In “Server” project from the package explorer view, add the following folders:
    • workingDir
      • config
      • files-dir
    • gapwalk
      • runtime
      • webapps
    • The folder structure should be as follow:
      aws-sde-dev-environment_39.png
  • Adding variables to launch configuration
    • Open the “server” property page from “Servers” view.
    • Click on “Open launch configuration” and select the “Arguments” tab:
      aws-sde-dev-environment_40.png
    • Select “Other” in the “Working directory” section. Then click on “Workspace” and select “workingDir” from the “Server” project.
    • In “VM arguments” add the following java variables (do not add line return, just add space between variables)
      • Add variable for Runtime Web application: -Dgapwalk.web=${workspace_loc:Servers/gapwalk/webapps}
      • Add variable for Runtime Shared libraries: -Dhome.shared=${workspace_loc:Servers/gapwalk/runtime}
      • Add variable for modernized application’s database: -DAPP_DB_DNS=card-demo.bluage.local
      • Add variable for the “files-dir” folder: -DFILES_DIR=${workspace_loc:Servers/workingDir/file-dir}
    • The result should look like this:
      aws-sde-dev-environment_41.png
  • Configuring class loader in “tomcat/config/catalina.properties”, from the package explorer edit the file and change the property common.loader:
  • Append the following at line end: ,"{$home.shared}/","${home.shared}/*.jar", see below (there is no line return)
    aws-sde-dev-environment_42.png
  • Configuring JNDI database connections in “tomcat/config/context.xml”, add the following XML tags:
    • <JarScanner scanClassPath="false" scanAllFiles="false" scanAllDirectories="false" scanManifest="false" />
    • <ResourceLink name="jdbc/primary" global="jdbc/primary" type="javax.sql.DataSource" />
    • Example:
      aws-sde-dev-environment_43.png
  • Configuring JNDI & Gapwalk Web application in “tomcat/conf/server.xml”, add the following XML tags:
    • Inside <GlobalNamingResources> add the tag:
      <Resource auth="Container" driverClassName="org.postgresql.Driver" initialSize="0" maxIdle="10" maxOpenPreparedStatements="-1" maxTotal="20" maxWaitMillis= "-1" name="jdbc/primary" password="card" poolPreparedStatements="true" testOnBorrow="false" type="javax.sql.DataSource" url="jdbc:postgresql://${APP_DB_DNS}:5432/card" username="card_bluesam"/>
    • Inside <Host> add the tags:
      • <Context docBase="${gapwalk.web}\bac.war" path="/bac" reloadable="true"/>
      • <Context docBase="${gapwalk.web}\gapwalk-application.war" path="/gapwalk-application" reloadable="true"/>
      • <Context docBase="${gapwalk.web}\gapwalk-utility-pgm.war" path="/gapwalk-utility-pgm" reloadable="true"/>
    • Make sure the end tag </Host> is on a different line.
    • Fragments example “server.xml”:
      aws-sde-dev-environment_44.pngaws-sde-dev-environment_45.png

Copying AWS Blu Age Runtime libraries into “Server” project

From the previous downloaded AWS Blu Age Runtime for Developers (see Getting “AWS Blu Age Runtime”)

From the uncompress archive, copy the following:

  • Copy <runtime version>/velocity/shared/*.*** to **Server/gapwalk/runtime/ aws-sde-dev-environment_46.pngaws-sde-dev-environment_47.png
  • Copy <runtime version>/velocity/webapps/*.* to Server/gapwalk/web/ aws-sde-dev-environment_48.png
  • Copy **<runtime version>/webapps-extra/gapwalk-utility-pgm.war to Server/gapwalk/web. Note depending on the existing application technology you might need gapwalk-cl-command.war instead.
    aws-sde-dev-environment_49.png
  • Copy **<runtime version>/webapps-consoles/bac.war to Server/gapwalk/web aws-sde-dev-environment_50.png
  • The result should look like this:
    aws-sde-dev-environment_51.png

Application configuration for Apache Tomcat server

In this section Gapwalk web application, and the modernized application is configured.

  • In Tomcat “Server” project, create the application YAML configuration as follow Server/workingDir/configuration/application-card.yml:

application-card.yml

# Logback context logger integration.  
logging:  
config: file:./config/logback/logback.xml  
level.com.netfective.bluage.gapwalk: ERROR  
level.com.fujitsu.takashimaya.program: ERROR  
level.com.fujitsu.takashimaya.program.job.scripts.GroovyExecution: INFO  
level.org.springframework.statemachine.support: WARN  
level.org.springframework.transaction.interceptor: ERROR  
level.org.springframework.transaction: ERROR  

# If the datasource support mode is not static-xa, spring JTA transactions autoconfiguration must me disabled  
spring.jta.enabled : false  

spring.jpa.show-sql: false
  • Create gapwalk web configuration file as follow Server/workingDir/application-main.yml;

application-main.yml

logging:  
config: file:./config/logback/logback.xml  
level.org.springframework.beans.factory.support.DefaultListableBeanFactory : WARN  
level.com.netfective.bluage.gapwalk.rt.blu4iv.dao.DataAccess : DEBUG  
level.org.springframework.jdbc.core.JdbcTemplate : DEBUG  
level.com.netfective.bluage.gapwalk.rt.db.GwJdbcTemplate : DEBUG  
level.com.netfective.bluage.gapwalk.database.support.cursor : DEBUG  
level.com.netfective.bluage.gapwalk.database.support.logging.DatabaseInteractionLoggerUtils : TRACE  

spring:  
quartz:  
auto-startup: false  
scheduler-name: Default  
properties:  
org.quartz.threadPool.threadCount: 1  
jta:  
enabled: false  
atomikos.properties.maxTimeout : 600000  
atomikos.properties.default-jta-timeout : 100000  
jpa:  
open-in-view: false  
properties.hibernate.temp.use_jdbc_metadata_defaults : false  
database-platform : org.hibernate.dialect.PostgreSQLDialect # org.hibernate.dialect.PostgreSQLDialect, org.hibernate.dialect.SQLServerDialect  

datasource:  
jicsDs:  
driver-class-name : org.postgresql.Driver # org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver  
url: jdbc:postgresql://${APP_DB_DNS}/card_jics # jdbc:postgresql://localhost:5433/jics, jdbc:sqlserver://localhost\SQLEXPRESS:1434;databasename=jics;  
username: card  
password: card  
type : org.postgresql.ds.PGSimpleDataSource # org.postgresql.ds.PGSimpleDataSource, com.microsoft.sqlserver.jdbc.SQLServerDataSource  

bluesamDs :  
driver-class-name : org.postgresql.Driver # org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver  
url : jdbc:postgresql://${APP_DB_DNS}/card_bluesam # jdbc:postgresql://localhost:5433/jics, jdbc:sqlserver://localhost\SQLEXPRESS:1434;databasename=jics;  
username : card  
password : card  
type : org.postgresql.ds.PGSimpleDataSource # org.postgresql.ds.PGSimpleDataSource, com.microsoft.sqlserver.jdbc.SQLServerDataSource  

filesDirectory : ${FILES_DIR}
  • Create SLF4J log back configuration files.
  • Create folder “logbak” in Server/workingDir/configuration:
  • Create file “logback.xml”
    ```

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE XML>









- Create “logback-definitions.xml” - <?xml version="1.0" encoding="UTF-8"?>








${DEFAULT_LOG_PATTERN}
${DEFAULT_CHARSET}




jobDiscriminator
default_main



${LOG_OUTPUT_PATH}/${jobDiscriminator}.log

${DEFAULT_LOG_PATTERN}
${DEFAULT_CHARSET}






progDiscriminator
default_prog



${LOG_OUTPUT_PATH}/${progDiscriminator}.log

%msg%n
${DEFAULT_CHARSET}





true


${LOG_OUTPUTPATH}\log%d{yyyy-MM-dd}_%i.log

100MB
100
10GB


${DEFAULT_LOG_PATTERN}
${DEFAULT_CHARSET}






 

</included>  

```

  • The folder structure should similar to this:
    aws-sde-dev-environment_52.png
  • Copy the groovy scripts from Blu Insights archive: <uncompressed archive path>\generate\outputs\card-demo-pom\card-demo-service\src\main\resources\scripts into Servers/workingDir/
    aws-sde-dev-environment_53.png

Import “Maven” project into workspace

This section covers importing the transformed application from the local git repository.

  • In Eclipse right click on “Package explorer” and select import then “Maven” > “Existing Maven projects”
    aws-sde-dev-environment_54.pngaws-sde-dev-environment_55.png
  • Select the root folder from C:\dev\git\gitlab-card-demo-modern-application
    aws-sde-dev-environment_56.pngaws-sde-dev-environment_57.png
  • Result
    aws-sde-dev-environment_58.png

Note card-web contains error on “json2” files. Eclipse does not support this format, and these errors can be ignored.

Last step before launching the application

Open AWS Blu Age Regression Testing Snapshots manager: https://dws-manager.bluage.local. Create a database server card-demo. You will need get the credentials from AWS Secrets Manager rts/user/devops. Once logged into RTS Manager create the database with a new volume. See this user guide for more detailed instruction: AWS Blu Age RTS - User Guide.

  • Click on the (+) icon to create a server
    aws-sde-dev-environment_59.png
  • Then enter the following parameter:
    aws-sde-dev-environment_60.png
  • Click “yes” this should take 2 or 3min for the server to be created. The created server will contain an initial Postgres database.
  • Use pgAdmin to connect to the database server, the password for postgres user can be found in AWS Secrets Manager’s key:
    aws-sde-dev-environment_61.png
  • Click “Save”
    aws-sde-dev-environment_62.png
  • Create a user “card_bluesam” for the modernized application.
    aws-sde-dev-environment_63.png
  • Assign the following roles:
    aws-sde-dev-environment_64.pngaws-sde-dev-environment_65.png
  • Make sure the password match the configuration file (defined here: Configuring JNDI & Gapwalk Web application in “tomcat/conf/server.xml”, add the following XML tags:)
  • Click “Save”
  • Create databases “card_bluesam” and “card_jics” with owner “card”. Here you can chose to reuse database from AWS Blu Insights L3 workshop.
    aws-sde-dev-environment_66.png
  • From this point you can restore the SQL dump corresponding to Blu Insights L3 or wait for the section on migrating data (TODO Link)
    aws-sde-dev-environment_67.png
  • Switch back to Eclipse and launch Tomcat Server. Running the application with an empty database will initiliaze Blusam tables (for Cobol application).

    Launching the modernized application

  • Right on server in “Server” view and select “Add and Remove Application...”
    aws-sde-dev-environment_68.png
  • Select “card-service” and click “add” and “Finish”.
    aws-sde-dev-environment_69.png
  • Tomcat Server should contains “card-service” application:
    aws-sde-dev-environment_70.png
  • Click on the green icon “>”
    aws-sde-dev-environment_71.png
  • After Tomcat Server is started, the database “card” is initialized with tables from “bluesam”
    aws-sde-dev-environment_72.png

    Migrating VSAM datafiles into BLUESAM and initializing JICS

To migrate data please repeat the steps in AWS Blu Insights L3 certification training: https://catalog.workshops.aws/aws-blu-age-l3-certification-workshop/en-US/data-migration

  • Once JICS and Bluesam data have been restored. Take a snapshot using RTS Manager.
    aws-sde-dev-environment_73.pngaws-sde-dev-environment_74.png
  • Waiting page will be displayed. Then database will be set on new snapshot.
    aws-sde-dev-environment_75.png
  • Once the snapshot is taken it can be used to come back to application initial state.

    Running Angular front end application

    In this section will start the application user interface in development mode using Visual Code.

    Prerequisite

  • Tomcat server must be started
  • Data migrated

    Visual Code

  • Launch Visual Code and open the folder (assuming git root is C:\dev\git): C:\dev\git\gitlab-card-demo-modern-application\card-pom\card-web\angular
    aws-sde-dev-environment_76.png
  • Open a terminal window from the menu “Terminal” > “New window”.
  • Execute the command line “npm start”. The application will compile in “development” mode and start a server listening on port 4200
  • Open a web browser on http://localhost:4200
    aws-sde-dev-environment_77.png
  • Type in the transaction “CC00”
    aws-sde-dev-environment_78.png

Complete instruction can be found here to test the modernized application.