File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Threads and Synchronization and the fly likes thread  - exception handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "thread  - exception handling" Watch "thread  - exception handling" New topic
Author

thread - exception handling

Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 147


Searchable nature photo gallery: http://agrozoo.net/jsp/Galery.jsp?l2=en
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3371
    
    9
Well, it depends what you want to do when an exception occurs. If in thread 2 you want to notify a user interface of e-mails that didn't get sent, and the user interface is part of thread 1's context, then you should simply pass the user interface to thread 2 when you start it, and let thread 2 deal with the user interface itself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: thread - exception handling
 
Similar Threads
Personal Book Promotions Rant
Thread.sleep
Background Threads
Not able to display images
Can't close JOptionDialog box by clicking OK