presented by: sif3 framework install - java joerg huber install & verify instructions and...

8
Presented by: SIF3 Framework Install - Java Joerg Huber Install & Verify Instructions and Exercise

Upload: kathryn-gray

Post on 02-Jan-2016

216 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Presented by: SIF3 Framework Install - Java Joerg Huber Install & Verify Instructions and Exercise

Presented by

SIF3 Framework Install - Java

Joerg Huber

Install amp Verify Instructions and Exercise

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

2Install amp Verify

Create a Java Project Database (Session Management) File System (Environment Templates) Configuration Files

Customise Verify Install

Start Demo Provider Run Connector Test

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

3Install ndash Create Java Project

Create a Java Project in your IDE of choice Should be a web project or just use the SIF3Training

Project In this case skip all other steps listed below Suggested structuredirectories as in the SIF3Training

Project for this training course Copy the libraries from the ldquoreleaserdquo directory

of the framework to the lib directory of your project (ie warWEB-INFlib)

Copy the content of the ldquoconfigrdquo ldquolibrdquo amp ldquowarrdquo (needed for provider) directory across to your project

Create build scripts (ant maven others)

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

4Install - Database

Choose a DB product of your choice For training could use SQLite

Create a DBSchema (ie lsquoSIF3rsquo) Run the following DDL scripts in that

schema DBDDLSIF3InfrastructureERM_DDL_ltdb_productgtsql

script DBDLLInitial_Insertssql

Required tables for the SIF3 Framework are installed and configured

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

5Install ndash Configuration Files Set JDBC Connection URL amp Credentials

ltconfiggthibernatesif3infrahibernatecfgxml Set environment template root directory

ltconfiggtenvironmentsproperties Set ldquoenvstoredirrdquo to location where you want to store

environment templates webxml

Set ltdisplay-namegt and lturl-patterngt (optional) consumerproperties amp providerproperties

Change the ldquoenvbaseURIrdquo andor ldquoenvconnectorurlrdquo to point to your localhostltportgtltdisplay-namegtlturl-patterngt

Others Will be highlighted during training

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

6Verify Install - Provider Start-up Provider (web application)

Deploy to webapplication container There is a simple demo StudentPersonal provider in the

SIF3Training Project Monitor log file (ie logSIF3Demolog) for errors No

errors =gt Successful start Test Provider

Type the following into your browser location httplocalhostltportgtltdisplay-namegtlturl-patterngtrequestsStudentPersonals

Should return error message of type ldquoNo or invalid Authorization Token providedrdquo

Provider appears to be fine ie it responded with correct message

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

7Verify Install - Consumer

This is not testing the Consumer directly but the connection and session management of a consumer (we write a consumer later -) Run the TestConsumerConnector class in the sif3test source

(sif3testenv package) Should show you a lot of output in the log relating to

environment creation No errors =gt All good Check the SIF3_SESSION table in the database

Should hold 2 rows with values Check the ENVIRONMENT_XML column that holds a full and valid environment

You may want to remove the rows again as this is a test only Delete from SIF3_SESSION

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

8Question Timehellip

Questions

  • SIF3 Framework Install - Java
  • Install amp Verify
  • Install ndash Create Java Project
  • Install - Database
  • Install ndash Configuration Files
  • Verify Install - Provider
  • Verify Install - Consumer
  • Question Timehellip
Page 2: Presented by: SIF3 Framework Install - Java Joerg Huber Install & Verify Instructions and Exercise

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

2Install amp Verify

Create a Java Project Database (Session Management) File System (Environment Templates) Configuration Files

Customise Verify Install

Start Demo Provider Run Connector Test

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

3Install ndash Create Java Project

Create a Java Project in your IDE of choice Should be a web project or just use the SIF3Training

Project In this case skip all other steps listed below Suggested structuredirectories as in the SIF3Training

Project for this training course Copy the libraries from the ldquoreleaserdquo directory

of the framework to the lib directory of your project (ie warWEB-INFlib)

Copy the content of the ldquoconfigrdquo ldquolibrdquo amp ldquowarrdquo (needed for provider) directory across to your project

Create build scripts (ant maven others)

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

4Install - Database

Choose a DB product of your choice For training could use SQLite

Create a DBSchema (ie lsquoSIF3rsquo) Run the following DDL scripts in that

schema DBDDLSIF3InfrastructureERM_DDL_ltdb_productgtsql

script DBDLLInitial_Insertssql

Required tables for the SIF3 Framework are installed and configured

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

5Install ndash Configuration Files Set JDBC Connection URL amp Credentials

ltconfiggthibernatesif3infrahibernatecfgxml Set environment template root directory

ltconfiggtenvironmentsproperties Set ldquoenvstoredirrdquo to location where you want to store

environment templates webxml

Set ltdisplay-namegt and lturl-patterngt (optional) consumerproperties amp providerproperties

Change the ldquoenvbaseURIrdquo andor ldquoenvconnectorurlrdquo to point to your localhostltportgtltdisplay-namegtlturl-patterngt

Others Will be highlighted during training

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

6Verify Install - Provider Start-up Provider (web application)

Deploy to webapplication container There is a simple demo StudentPersonal provider in the

SIF3Training Project Monitor log file (ie logSIF3Demolog) for errors No

errors =gt Successful start Test Provider

Type the following into your browser location httplocalhostltportgtltdisplay-namegtlturl-patterngtrequestsStudentPersonals

Should return error message of type ldquoNo or invalid Authorization Token providedrdquo

Provider appears to be fine ie it responded with correct message

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

7Verify Install - Consumer

This is not testing the Consumer directly but the connection and session management of a consumer (we write a consumer later -) Run the TestConsumerConnector class in the sif3test source

(sif3testenv package) Should show you a lot of output in the log relating to

environment creation No errors =gt All good Check the SIF3_SESSION table in the database

Should hold 2 rows with values Check the ENVIRONMENT_XML column that holds a full and valid environment

You may want to remove the rows again as this is a test only Delete from SIF3_SESSION

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

8Question Timehellip

Questions

  • SIF3 Framework Install - Java
  • Install amp Verify
  • Install ndash Create Java Project
  • Install - Database
  • Install ndash Configuration Files
  • Verify Install - Provider
  • Verify Install - Consumer
  • Question Timehellip
Page 3: Presented by: SIF3 Framework Install - Java Joerg Huber Install & Verify Instructions and Exercise

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

3Install ndash Create Java Project

Create a Java Project in your IDE of choice Should be a web project or just use the SIF3Training

Project In this case skip all other steps listed below Suggested structuredirectories as in the SIF3Training

Project for this training course Copy the libraries from the ldquoreleaserdquo directory

of the framework to the lib directory of your project (ie warWEB-INFlib)

Copy the content of the ldquoconfigrdquo ldquolibrdquo amp ldquowarrdquo (needed for provider) directory across to your project

Create build scripts (ant maven others)

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

4Install - Database

Choose a DB product of your choice For training could use SQLite

Create a DBSchema (ie lsquoSIF3rsquo) Run the following DDL scripts in that

schema DBDDLSIF3InfrastructureERM_DDL_ltdb_productgtsql

script DBDLLInitial_Insertssql

Required tables for the SIF3 Framework are installed and configured

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

5Install ndash Configuration Files Set JDBC Connection URL amp Credentials

ltconfiggthibernatesif3infrahibernatecfgxml Set environment template root directory

ltconfiggtenvironmentsproperties Set ldquoenvstoredirrdquo to location where you want to store

environment templates webxml

Set ltdisplay-namegt and lturl-patterngt (optional) consumerproperties amp providerproperties

Change the ldquoenvbaseURIrdquo andor ldquoenvconnectorurlrdquo to point to your localhostltportgtltdisplay-namegtlturl-patterngt

Others Will be highlighted during training

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

6Verify Install - Provider Start-up Provider (web application)

Deploy to webapplication container There is a simple demo StudentPersonal provider in the

SIF3Training Project Monitor log file (ie logSIF3Demolog) for errors No

errors =gt Successful start Test Provider

Type the following into your browser location httplocalhostltportgtltdisplay-namegtlturl-patterngtrequestsStudentPersonals

Should return error message of type ldquoNo or invalid Authorization Token providedrdquo

Provider appears to be fine ie it responded with correct message

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

7Verify Install - Consumer

This is not testing the Consumer directly but the connection and session management of a consumer (we write a consumer later -) Run the TestConsumerConnector class in the sif3test source

(sif3testenv package) Should show you a lot of output in the log relating to

environment creation No errors =gt All good Check the SIF3_SESSION table in the database

Should hold 2 rows with values Check the ENVIRONMENT_XML column that holds a full and valid environment

You may want to remove the rows again as this is a test only Delete from SIF3_SESSION

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

8Question Timehellip

Questions

  • SIF3 Framework Install - Java
  • Install amp Verify
  • Install ndash Create Java Project
  • Install - Database
  • Install ndash Configuration Files
  • Verify Install - Provider
  • Verify Install - Consumer
  • Question Timehellip
Page 4: Presented by: SIF3 Framework Install - Java Joerg Huber Install & Verify Instructions and Exercise

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

4Install - Database

Choose a DB product of your choice For training could use SQLite

Create a DBSchema (ie lsquoSIF3rsquo) Run the following DDL scripts in that

schema DBDDLSIF3InfrastructureERM_DDL_ltdb_productgtsql

script DBDLLInitial_Insertssql

Required tables for the SIF3 Framework are installed and configured

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

5Install ndash Configuration Files Set JDBC Connection URL amp Credentials

ltconfiggthibernatesif3infrahibernatecfgxml Set environment template root directory

ltconfiggtenvironmentsproperties Set ldquoenvstoredirrdquo to location where you want to store

environment templates webxml

Set ltdisplay-namegt and lturl-patterngt (optional) consumerproperties amp providerproperties

Change the ldquoenvbaseURIrdquo andor ldquoenvconnectorurlrdquo to point to your localhostltportgtltdisplay-namegtlturl-patterngt

Others Will be highlighted during training

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

6Verify Install - Provider Start-up Provider (web application)

Deploy to webapplication container There is a simple demo StudentPersonal provider in the

SIF3Training Project Monitor log file (ie logSIF3Demolog) for errors No

errors =gt Successful start Test Provider

Type the following into your browser location httplocalhostltportgtltdisplay-namegtlturl-patterngtrequestsStudentPersonals

Should return error message of type ldquoNo or invalid Authorization Token providedrdquo

Provider appears to be fine ie it responded with correct message

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

7Verify Install - Consumer

This is not testing the Consumer directly but the connection and session management of a consumer (we write a consumer later -) Run the TestConsumerConnector class in the sif3test source

(sif3testenv package) Should show you a lot of output in the log relating to

environment creation No errors =gt All good Check the SIF3_SESSION table in the database

Should hold 2 rows with values Check the ENVIRONMENT_XML column that holds a full and valid environment

You may want to remove the rows again as this is a test only Delete from SIF3_SESSION

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

8Question Timehellip

Questions

  • SIF3 Framework Install - Java
  • Install amp Verify
  • Install ndash Create Java Project
  • Install - Database
  • Install ndash Configuration Files
  • Verify Install - Provider
  • Verify Install - Consumer
  • Question Timehellip
Page 5: Presented by: SIF3 Framework Install - Java Joerg Huber Install & Verify Instructions and Exercise

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

5Install ndash Configuration Files Set JDBC Connection URL amp Credentials

ltconfiggthibernatesif3infrahibernatecfgxml Set environment template root directory

ltconfiggtenvironmentsproperties Set ldquoenvstoredirrdquo to location where you want to store

environment templates webxml

Set ltdisplay-namegt and lturl-patterngt (optional) consumerproperties amp providerproperties

Change the ldquoenvbaseURIrdquo andor ldquoenvconnectorurlrdquo to point to your localhostltportgtltdisplay-namegtlturl-patterngt

Others Will be highlighted during training

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

6Verify Install - Provider Start-up Provider (web application)

Deploy to webapplication container There is a simple demo StudentPersonal provider in the

SIF3Training Project Monitor log file (ie logSIF3Demolog) for errors No

errors =gt Successful start Test Provider

Type the following into your browser location httplocalhostltportgtltdisplay-namegtlturl-patterngtrequestsStudentPersonals

Should return error message of type ldquoNo or invalid Authorization Token providedrdquo

Provider appears to be fine ie it responded with correct message

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

7Verify Install - Consumer

This is not testing the Consumer directly but the connection and session management of a consumer (we write a consumer later -) Run the TestConsumerConnector class in the sif3test source

(sif3testenv package) Should show you a lot of output in the log relating to

environment creation No errors =gt All good Check the SIF3_SESSION table in the database

Should hold 2 rows with values Check the ENVIRONMENT_XML column that holds a full and valid environment

You may want to remove the rows again as this is a test only Delete from SIF3_SESSION

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

8Question Timehellip

Questions

  • SIF3 Framework Install - Java
  • Install amp Verify
  • Install ndash Create Java Project
  • Install - Database
  • Install ndash Configuration Files
  • Verify Install - Provider
  • Verify Install - Consumer
  • Question Timehellip
Page 6: Presented by: SIF3 Framework Install - Java Joerg Huber Install & Verify Instructions and Exercise

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

6Verify Install - Provider Start-up Provider (web application)

Deploy to webapplication container There is a simple demo StudentPersonal provider in the

SIF3Training Project Monitor log file (ie logSIF3Demolog) for errors No

errors =gt Successful start Test Provider

Type the following into your browser location httplocalhostltportgtltdisplay-namegtlturl-patterngtrequestsStudentPersonals

Should return error message of type ldquoNo or invalid Authorization Token providedrdquo

Provider appears to be fine ie it responded with correct message

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

7Verify Install - Consumer

This is not testing the Consumer directly but the connection and session management of a consumer (we write a consumer later -) Run the TestConsumerConnector class in the sif3test source

(sif3testenv package) Should show you a lot of output in the log relating to

environment creation No errors =gt All good Check the SIF3_SESSION table in the database

Should hold 2 rows with values Check the ENVIRONMENT_XML column that holds a full and valid environment

You may want to remove the rows again as this is a test only Delete from SIF3_SESSION

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

8Question Timehellip

Questions

  • SIF3 Framework Install - Java
  • Install amp Verify
  • Install ndash Create Java Project
  • Install - Database
  • Install ndash Configuration Files
  • Verify Install - Provider
  • Verify Install - Consumer
  • Question Timehellip
Page 7: Presented by: SIF3 Framework Install - Java Joerg Huber Install & Verify Instructions and Exercise

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

7Verify Install - Consumer

This is not testing the Consumer directly but the connection and session management of a consumer (we write a consumer later -) Run the TestConsumerConnector class in the sif3test source

(sif3testenv package) Should show you a lot of output in the log relating to

environment creation No errors =gt All good Check the SIF3_SESSION table in the database

Should hold 2 rows with values Check the ENVIRONMENT_XML column that holds a full and valid environment

You may want to remove the rows again as this is a test only Delete from SIF3_SESSION

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

8Question Timehellip

Questions

  • SIF3 Framework Install - Java
  • Install amp Verify
  • Install ndash Create Java Project
  • Install - Database
  • Install ndash Configuration Files
  • Verify Install - Provider
  • Verify Install - Consumer
  • Question Timehellip
Page 8: Presented by: SIF3 Framework Install - Java Joerg Huber Install & Verify Instructions and Exercise

copy Systemic Pty LtdSeptember 2014

Training Course - Sydney SIF3 Framework Install

8Question Timehellip

Questions

  • SIF3 Framework Install - Java
  • Install amp Verify
  • Install ndash Create Java Project
  • Install - Database
  • Install ndash Configuration Files
  • Verify Install - Provider
  • Verify Install - Consumer
  • Question Timehellip