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 executor service execute method don't work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "executor service execute method don Watch "executor service execute method don New topic
Author

executor service execute method don't work

Mohamad Samy
Ranch Hand

Joined: Apr 26, 2013
Posts: 98
I have the following server which when is created through making threads and using start method It works fine. but when use execute method on executor service object, nothing happen and no invoke for the run method in the thread to receive data from client.
Mohamad Samy
Ranch Hand

Joined: Apr 26, 2013
Posts: 98
I found it as following. when I create a new runnable object which in my case is the Host object, it must be followed directly with the execute method not to declare many objects then attach them to execute. any one has an explanation why that works.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: executor service execute method don't work