Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

executor service execute method don't work

 
Mohamad Samy
Ranch Hand
Posts: 98
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 98
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic