CronTrigger Questions

Hey experts,

 Using the org.quartz.CronTrigger class (whose doc. is found at: http://quartz.sourceforge.net/javadoc/org/quartz/CronTrigger.html). I have a question:
If I want an event scheduled to occur every 40 minutes, would that be its expression??

"0 0/40 * * * ?"

or would that occur after 40 minutes from the start of each hour??
LVL 3
mte01Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

objectsCommented:
no thats correct I think
0
mte01Author Commented:
>>objects

You mean, it would occur every 40 minutes..right??
i.e. if I scheduled it at 1:30 pm, it would occur at 1:40,2:20,3:00,3:40 pm...etc....right??
0
CEHJCommented:
AFAIK you can't. If Quartz can use at jobs, you may be able to do it with at
0
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

objectsCommented:
> You mean, it would occur every 40 minutes..right??

yes
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mte01Author Commented:
>>CEHJ

Yes, I don't want it to be this way....
0
objectsCommented:
how can a comment that is wrong assist you :)
0
CEHJCommented:
>> how can a comment that is wrong assist you :)

I was wondering that too. Perhaps you can reopen the question mte01 and reassign the points you gave objects?
0
mte01Author Commented:
>>objects,CEHJ

>> how can a comment that is wrong assist you :)

It assisted me in the manner that if a manager asked for that option later, I can tell him that this cannot be done with the available classes. Thanks for your help guys!!
0
objectsCommented:
It can be done :)
0
mte01Author Commented:
Yes, ok..(I dont know how I didn't realize that)..I would request that this question be reopened
0
CEHJCommented:
In the meantime, you can test the expression you posted and let us know if it schedules *every forty minutes* and at no other time ;-)
0
mte01Author Commented:
>>CEHJ

Yes, I had already tried it & it worked...
0
CEHJCommented:
It's barely 40 minutes since you posted the question ;-)
0
mte01Author Commented:
>>CEHJ

I am working on an exisitng project that uses CronTrigger & that tells me when the next time of each execution is. I scheduled it at 1:30 pm my time, it executed at 1:40 pm, and told me that its next execution is 2:20 pm
0
CEHJCommented:
OK - i'm wrong then ;-)
0
objectsCommented:
> OK - i'm wrong then ;-)

If you haven't actually used Quartz I'd suggest you don't make comments on what it cannot do, all  that does is mislead people.

0
CEHJCommented:
The question was about cron, not Quartz
0
objectsCommented:
ROTFL, helps to actually read the question before posting. It has nothing to do with cron.
0
mte01Author Commented:
>>Netminder

If you read the question carefully, you'll see that these two questions are different (this one talk about the trigger at the beginning of an hour - the other one talks about the trigger at a caculated time starting from now).
0
objectsCommented:
thats right, the two are different.
And CEHJ's comment is wrong.
0
mte01Author Commented:
>>objects

Yes, I would request the question also to be reopened so I can redistribute the points.
0
objectsCommented:
What about the points? This question is *not* the same as the other, what makes you think it is? (And why would someone ask the same question twice anyway)
0
objectsCommented:
Generally it is twice at the same time isn't it, not asking it again after its been answerd.
0
objectsCommented:
:)
0
mte01Author Commented:
Thanks Netminder...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.