How can I get a JavaMail Session object in a thread
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Charles_Varignon
Posted On:   Tuesday, January 14, 2003 01:51 AM

I'm trying to send an Email in a thread created by a Timer. It doesn't works. When, in debug, I arrive at the instruction

			
"Session session = Session.getDefaultInstance(props, null);"
, JBuilder tells me "Process Terminated" and the program stops.

When I send the mail in the main process, it works well.

Has somebody encountered the same problem ? Is there something special to do to use the JavaMail API within a thread ?
Thank you very much.

I've found the solution, thank you !

Posted By:   Charles_Varignon  
Posted On:   Tuesday, January 14, 2003 05:58 AM

My thread was a daemon and shouldn't...
About | Sitemap | Contact