I am confused about a strange problem. Basically the situation is this. I implemented runnable in my class, pass the class in a new thread, override my run() method in the class that implements runnable, and then start the thread. However, my start() method never calls my run() method. I am looking for forums, but I cannot find another similar problem.
The following is sample code:
public class EmailManager implements Runnable { PortalManagementSBLocal pmbr= this.lookupPortalManagementSB(); Thread runner; String emailServerName = ""; String smtpPort = ""; String emailTo = ""; String emailFrom = ""; String mailer = "JavaMailer"; String subject = ""; String message = ""; public EmailManager() { }
Any guidance would be very helpful! Thanks a ton!
Qin zhengquan
source share