Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Open Source Scheduler?

Posted on 2011-09-16
12
274 Views
Last Modified: 2013-11-05
Does anyone have any suggestions for an open source scheduler maybe written or Java that will allow for scheduling batch jobs and also has the capability to watch for events to kick off jobs?

The built in scheduler will not suffice.

Thanks,

NG,
0
Comment
Question by:nike_golf
  • 8
  • 4
12 Comments
 
LVL 47

Expert Comment

by:for_yan
ID: 36552674
0
 
LVL 47

Expert Comment

by:for_yan
ID: 36552679

check also this - they are talking about Quartz and some other

http://stackoverflow.com/questions/2750226/what-is-a-good-open-source-job-scheduler-in-java
0
 
LVL 47

Expert Comment

by:for_yan
ID: 36552685

and this is close but maybe something additional:
http://stackoverflow.com/questions/1465607/java-scheduler
0
Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

 
LVL 47

Expert Comment

by:for_yan
ID: 36552687
0
 
LVL 13

Author Comment

by:nike_golf
ID: 36553883
All those seem to be Inly able to schedule java applications. Correct me if I'm wrong...

I need to be able to schedule .exe and .bat jobs do any if those offer that?
0
 
LVL 13

Author Comment

by:nike_golf
ID: 36557748
Something like zcron looks promising but since I was hoping to run this on my desktop at work it's a bust...
0
 
LVL 47

Expert Comment

by:for_yan
ID: 36557772

But you can wrap  .exe and .bat in Java Runtime.getUntiame().exec(...)

Quartz also has NativeJob facility to run native job, like .exe

Maybe z-cron is more suitable if you are not focused so much on java
0
 
LVL 13

Author Comment

by:nike_golf
ID: 36557962
Maybe I'm overlooking Quartz...

Do you have an example of how I would execute a .bat in Quartz?

NG,

0
 
LVL 47

Accepted Solution

by:
for_yan earned 500 total points
ID: 36557981


I saw such question about executing .exe file:
http://stackoverflow.com/questions/2806612/quartz-scheduler-not-running-the-task

JobDataMap map = new JobDataMap();
map.put(NativeJob.PROP_COMMAND, "c:/WINDOWS/notepad.exe");

In this question the author could not see notapd starting, but ther is a provision.

But there is not much doubt once you can execute any java method, say like here
http://www.roseindia.net/quartz/quartz-scheduler-tutorial.shtml
 so you can use Runtime.getRuntime().exec(...)
and start exe file and batch file in this way from within java code.


There is also Quartz.NET which should definitely start not only java jobs:
http://quartznet.sourceforge.net/faq.html

though it seems to me that z-cron looks more popular than Quartz.NET






Besu

0
 
LVL 47

Expert Comment

by:for_yan
ID: 36558007
But if most of your jobs will not be based on java - I'd rather suggest to use non-java
scheduler.
0
 
LVL 13

Author Comment

by:nike_golf
ID: 36584171
Since this is a Windows 7 machine I don't really see a lot of options.

Quartz and Quarts.net look promising as well as Zcron.

Thanks for all the help and suggestions.
0
 
LVL 47

Expert Comment

by:for_yan
ID: 36584177
You are always welcome.
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java example issue 3 23
Capture image using MDT 21 37
How do I make a bootable windows flash drive? 11 58
RDP- Windows 7 home Premium to 7 Pro via VPN 10 12
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question