Invoke the doGet Servlet method from java class
问题 I have a scheduled job class, implements the Quartz Job class, from which I want to invoke a Servlet class that updates a flag in a DB table and then it sends emails to an appropriate emailing list. I get a java.net.ConnectException . Though the servlet is properly invoked by either entering its URL in the browser or by JavaScript in a JSP page. My Java class is the following: public class ExpirationJob implements Job { org.apache.log4j.Logger log = org.apache.log4j.Logger.getLogger(