I'm trying to follow the recipe for changing a JobEntry via a HTML Form thats in the 
turbine's services page.

I'm having problems changing the JobEntry in DB .....
I can make it work right in memory ( the JobQueue is updated right)...
but the DB remains with the old values....

That's my action class:


 ParameterParser params = data.getParameters();
  int second = params.getInt("second",-1);
  int minute = params.getInt("minute",-1);
  int hour = params.getInt("hour",-1);
  int weekday = params.getInt("weekday",-1);
  int dom = params.getInt("day_of_month",-1);
  String email = params.getString("email","");
  
   ScheduleService ss = (ScheduleService)TurbineServices
    .getInstance()
    .getService(ScheduleService.SERVICE_NAME);
   
   
/// the jobentry i'm updating has job_id = 0
JobEntry je = ss.getJob(0);
   
   je.setSecond(second);
   je.setMinute(minute);
   je.setWeekday(weekday);
   je.setDay_of_month(dom);
   je.setEmail(email);
   ss.updateJob(je);





Diogo Saad

Reply via email to