Petals Master Getting Started
This guide provides the main steps to start with Petals Master. We use the Petals Master Quick Start edition for this tutorial.
Installing Petals Master Quick Start
Launching Petals Master
- Open a command console and go to "$PETALS_MASTER_ROOT/bin" folder
- Launch start.bat (windows) or start.sh (linux)
- Launch a web browser (recommanded browsers are Firefox, Chrome and Safari)
- Petals Master UI is available at : http://localhost:8323/petals-master-1.0/petals-master
- Two users defined by default : administrator with login "master" and password "master", simple user with login "user" and password "user"
- List of Petals Master Web Services is avalaible at : http://localhost:8323/petals-master-1.0/ws
Populate Petals Master database with a sample dataset
- Once logged in as administrator, you could load a sample dataset containing organization, posts, and persons
- Click on the "Database Administration" link
- Select "Dataset URL Import" tab
- Enter the following URL : classpath:dataset/sample-dataset.xml. Click the "Submit" button
Load Services into Petals Master
- Click on the "Import Service" link
- Select "WSDL URL Import" tab
- Enter a wsdl url like : http://ws2.serviceobjects.net/fw/fastweather.asmx?wsdl. Click the "Submit" button
- Or select "WSDL File Import" tab
- Browse your file system to select a WSDL file. Click the "Submit" button
Connect to a Petals ESB v3.0 node and import services
- Click "Add Runtime Manager" link
- Enter the Petals ESB Master connection WS address (provided at Petals ESB startup). Something like : http://localhost:7600/petals/ws/ExecutionEnvironmentManager. Click the "Submit" button
- Once runtime manager registered, go to "Execution Environments" tab and click the "Synchronize Execution Environments" button. All execution environment (petals nodes) will be registered with all deployed services and endpoints
Stopping Petals Master
- Open a command console and go to "$PETALS_MASTER_ROOT/bin" folder
- Launch stop.bat (windows) or stop.sh (linux)
Cautions
- Petals Master is setup with an in memory database by default, so if you stop it, all registered data will be lost. To setup a persistent database (MySQL) see Petals Master user guide.
- Petals Master configuration files are available in "$PETALS_MASTER_ROOT/serverTomcat/webapps/petals-master-1.0/WEB-INF/classes" folder
- A webapp version of Petals Master is also available. See Petals Master user guide for more information about it.