public void execute(JobContext context) throws Exception
{
PortalContainer manager = PortalContainer.getInstance();
QueueTasks qtasks = (QueueTasks)manager.getComponentInstanceOfType(QueueTasks.class);
Task task = qtasks.poll();
while (task != null)
{
try
{
task.execute();