...
You can use the Jetty of the JobScheduler for your own application.
- We assume we have an ajax application in /home/jobscheduler_user/my_app which calls via Ajax a java servlet via with ./myappservlet?some=query.
- We assume the Java servlet class is com.my.apps.MyServlet and it is complied in com.my.apps.jar.
...
- 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
Code Block |
---|
... [java] class_path = <span style="color:red">$\{SCHEDULER_HOME\}/lib/my_app/com.my.apps.jar</span>:$\{SCHEDULER_HOME\}/lib/*.jar:$\{SCHEDULER_HOME\}/lib/hibernate/*.jar:$\{SCHEDULER_HOME\}/lib/jetty_ext/*.jar ... |
- Add the following servlets servlet elements to the ./config/web.xml (where jobscheduler_user have to substitute with the username of the JobScheduler).
...