Skip to end of metadata
Go to start of metadata

Please read first the article How to operate JobScheduler with Jetty for general information.

You can use the Jetty of the JobScheduler for your own application.

  • We assume we have an application in /home/[jobscheduler_user]/my_app which calls a java servlet via ajax with ./myappservlet?some=query.
  • We assume the Java servlet class is com.my.apps.MyServlet and it is complied in com.my.apps.jar.

The following steps are necessary to call the application by

http://[jobscheduler_host]:[jobscheduler_jetty_port]/jobscheduler/myapp/

where [scheduler_host] and [jobscheduler_jetty_port] have to substitute with the hostname and the jetty port of the JobScheduler.

  • Put the my_app.jar into the JobScheduler java class path
    • Create a folder my_app in the JobScheduler ./lib directory and store the com.my.apps.jar in this new folder.
    • Open the ./config/factory.ini and add the com.my.apps.jar to the class path
  • Add the following servlet elements to the ./config/web.xml (where [scheduler_user] have to substitute with the username of the JobScheduler).
  • Restart the JobScheduler and call

    http://[scheduler_host]:[scheduler_jetty_port]/jobscheduler/myapp/