
May 7th, 2012, 07:14 AM
|
|
Registered User
|
|
Join Date: May 2012
Location: Adelaide, AU
Posts: 2
Time spent in forums: 32 m 23 sec
Reputation Power: 0
|
|
|
Hi,
A cron job cannot execute a single method within a Java class file because it's not designed for this. Cron jobs simply execute a command at a given time or interval with any additional parameters specified in the command line. I guess based on this, you could create a separate driver class which executes the single method, or otherwise you could create some form of parameter input which has a condition to run the single method.
I'm no Java expert, but I'm pretty sure that's the way to go.
Cheers,
Jason.
|