2

i couldn't find the method that sets the triggerListener name. but i get the Exception:

org.quartz.SchedulerException: TriggerListener 'wavemark.interfaceserver.interfaceengine.action.EngineListener' 
    props could not be configured. 
    [See nested exception: java.lang.NoSuchMethodException:
          wavemark.interfaceserver.interfaceengine.action.EngineListener.setName(java.lang.String)]

but then i figured it out, i added a name variable along with a setter method for it:

public class EngineListener implements TriggerListener
{
private String name;

public EngineListener()
{

}
public EngineListener(String name)
{
    this.name = name;
}

public void setName(String name)
{
    this.name = name;
}

public String getName()
{
    return name;
}

@Override
public void triggerComplete(Trigger arg0, JobExecutionContext arg1, int arg2)
{
    // TODO Auto-generated method stub      
}

@Override
public void triggerFired(Trigger arg0, JobExecutionContext arg1)
{
    // TODO Auto-generated method stub  
}

@Override
public void triggerMisfired(Trigger arg0)
{
    // TODO Auto-generated method stub

}

@Override
public boolean vetoJobExecution(Trigger arg0, JobExecutionContext arg1)
{
    return false;
}

i just wanna know what are the exact configuration inside the quartz properties that will match my code because now i am initializing and adding the listener from inside the application and i want this configuration to be initialized on deploy time anytime the ear file is changed, same way as the rest of the configuration are initialized.

Gilbert
  • 212
  • 1
  • 13
  • i figured it out: org.quartz.triggerListener.NAME.class=wavemark.interfaceserver.interfaceengine.action.EngineListener org.quartz.triggerListener.NAME.name=InterfaceSchedulerListener – Gilbert Jun 21 '11 at 16:21

1 Answers1

2

i figured it out: org.quartz.triggerListener.NAME.class=wavemark.interfaceserver.interfaceengine.a‌​ction.EngineListener org.quartz.triggerListener.NAME.name=InterfaceSchedulerListener

Gilbert
  • 212
  • 1
  • 13