001// -------------------------------------------------------------------------------- 002// Copyright 2002-2024 Echo Three, LLC 003// 004// Licensed under the Apache License, Version 2.0 (the "License"); 005// you may not use this file except in compliance with the License. 006// You may obtain a copy of the License at 007// 008// http://www.apache.org/licenses/LICENSE-2.0 009// 010// Unless required by applicable law or agreed to in writing, software 011// distributed under the License is distributed on an "AS IS" BASIS, 012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013// See the License for the specific language governing permissions and 014// limitations under the License. 015// -------------------------------------------------------------------------------- 016 017package com.echothree.service.job.server; 018 019import com.echothree.control.user.license.common.LicenseUtil; 020import com.echothree.model.control.job.common.Jobs; 021import com.echothree.util.common.service.job.BaseScheduledJob; 022import com.echothree.util.common.command.CommandResult; 023import javax.ejb.Schedule; 024import javax.ejb.Singleton; 025import javax.naming.NamingException; 026 027//@Singleton 028public class LicenseUpdateJob { 029// extends BaseScheduledJob { 030// 031// /** Creates a new instance of LicenseUpdateJob */ 032// public LicenseUpdateJob() { 033// super(Jobs.LICENSE_UPDATE.name()); 034// } 035// 036// @Override 037// @Schedule(second = "55", minute = "*", hour = "*", persistent = false) 038// public void executeJob() 039// throws NamingException { 040// super.executeJob(); 041// } 042// 043// @Override 044// public void execute() 045// throws NamingException { 046// CommandResult commandResult = LicenseUtil.getHome().updateLicense(userVisitPK); 047// 048// if(commandResult.hasErrors()) { 049// getLog().error(commandResult.toString()); 050// } 051// } 052 053}