Skip to content

stefanocortellessa/Service-Oriented

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BACK-END APPLICATION SETUP:

  1. Download or clone source from this repository: 'https://github.com/stefanocortellessa/Service-Oriented'

  2. Import in Eclipse each directory under 'Service-Oriented/guidApp_backend/' as existing project:

    • accountmanager
    • attractionmanager
    • balanceagent
    • eventmanager
    • loadbalancer
    • prosumer
    • researchmanager
    • routingrequests
  3. Make sure that all sources generated by Maven are available. If not, run 'Maven Update' command on each project to auto-generate them.

  4. Make sure that EACH project has Maven dependencies enabled. If not, add them manually doing: right click on project root -> properties -> deployment assembly -> add -> java build path entries -> maven dependencies.

  5. Create a Database named 'guidApp' on MySQL (port 3306, user = root, password = root)

  6. Make sure to import dump.sql file in MySQL to populate the Database.

  7. Deploy projects on servers in the following way:

    • On Tomcat 8.5.3 istance (port 8080) deploy 'prosumer' & 'loadBalancer' services.
    • On Tomcat 8.5.3 istances (port 8100, port 8110 & port 8120) deploy 'accountManager', 'researchManager', 'eventManager', 'attractionManager' & 'balanceAgent' services.
  8. Run servers in the following order:

    • Tomcat 8.5.3 port 8100, port 8110, port 8120.
    • Tomcat 8.5.3 port 8080.

    NOTE: run first each server with providers (port 8100, 8110, 8120) and only after that run the server with the prosumer and the loadBalancer (port 8080).

  9. Run 'routingrequest' as Java Application (on port 8090).

  10. Use the mobile application (or use Postman to execute REST calls, or SoapUI to execute Soap calls).

ARCHETYPE USAGE:

  1. run "mvn clean install" under /archetype/prosumerArchetype
  2. run in a empy folder the following command: "mvn archetype:generate -DgroupId=it.univaq.disim.sose.newprovider -DartifactId=archetypetest -DarchetypeArtifactId=guidApp_archetype -DarchetypeVersion=1.0.0-SNAPSHOT -DarchetypeGroupId=it.univaq.disim.sose.touristicguide -DinteractiveMode=false -DarchetypeCatalog=local -DdbName=projectName -DartifactIdClass=ArchetypeTest -X"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published