-
Notifications
You must be signed in to change notification settings - Fork 189
Global Scheduler Develop
All you need to build this project is Java 7.0 (Java SDK 1.7) or later, Maven 3.0 or later and LSM-Light client and the utils.commons library installed to your local maven repository. The application this project produces is designed to be run on JBoss Enterprise Application Platform 6 or JBoss AS 7.1.
To download Scheduler’s source code use your favorite git client and retrieve the code from one of the following URLs:
- HTTPS:
https://github.com/OpenIotOrg/openiot.git
- SSH:
[email protected]:OpenIotOrg/openiot.git
The scheduler is available under the openiot/modules/scheduler/
folder.
If you have not yet done so, you must Configure Maven before testing the scheduler deployment. After that:
Start the JBoss Enterprise Application Platform 6 or JBoss AS 7.1 with the Web Profile
- Open a command line and navigate to the root of the JBoss server directory.
- The following shows the command line to start the server with the web profile:
- For Linux:
JBOSS_HOME/bin/standalone.sh
- For Windows:
JBOSS_HOME\bin\standalone.bat
- For Linux:
NOTE: The following build command assumes you have configured your Maven user settings. If you have not, you must include Maven setting arguments on the command line.
-
Make sure you have started the JBoss Server as described above.
-
Open a command line and navigate to the root directory of the scheduler Project.
-
Type this command to build and deploy the archive:
mvn clean package jboss-as:deploy
-
This will deploy target/scheduler.core.war to the running instance of the server.
The Scheduler uses the global properties file. Directions on how to use and configure can be found here
The application will be running at the following URL: http://localhost:8080/scheduler.core/.
-
Make sure you have started the JBoss Server as described above.
-
Open a command line and navigate to the root directory of the scheduler Project.
-
When you are finished testing, type this command to undeploy the archive:
mvn jboss-as:undeploy
You can start JBoss Application Server and deploy the Scheduler from Eclipse using JBoss tools. Detailed instructions on how to integrate and start JBoss AS from Eclipse with JBoss Tools are available here .
To integrate and deploy the Scheduler in Eclipse one should follow the steps below:
-
Import Existing maven project
File>Import>Maven>Existing Maven Projects
-
Click the “Browse” button and navigate to the scheduler’s source code directory that has been previously downloaded.
-
Choose the scheduler.core and click the Finish button.
-
Right click on the
scheduler.core
project and chooseRun As>Maven Build…
-
Insert the following to:
- Goals:
clean package jboss-as:deploy
- Profiles:
arq-jbossas-remote
- Name:
scheduler.core package-deploy
(or your preferred name)
Click the Run button (the JBoss Server should be already running). The project will automatically build itself, get deployed and run at the JBoss AS running instance. From now on this configuration should be available at the Eclipse Run Configurations under Maven Build.
To Undeploy the scheduler from the running instance of the JBoss AS follow the steps below:
-
Right click on the “scheduler.core” project and choose
Run As>Maven Build…
-
Insert the following to:
- Goals:
jboss-as:undeploy
- Profiles:
arq-jbossas-remote
- Name:
scheduler.core undeploy
(or your preferred name)
Click the Run button (the JBoss Server should be already running). The project will automatically be undeployed from the JBoss AS running instance. From now on this configuration should be available at the Eclipse Run Configurations under Maven Build.
- Documentation
- Home
- Architecture
- Scheduler
- Service Delivery & Utility Manager
- Data Platform (LSM)
- X-GSN
- Mobile Sensors Management
- Optimizations
- Security
- User Interfaces
- OpenIoT Commons & Properties
- Standalone Platform Testing tools
- X-GSN Sensor Simulators
- Deliverables
- Glossary and Terminology
- Demos