• Post Reply Bookmark Topic Watch Topic
  • New Topic

Thread and Web Applications  RSS feed

 
Rudra Narayan Garnaik
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Please share your points whether it is good to use thread on web applications?

- If NO/YES, then why so?


Many thanks in advance.
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You shouldn't use Threads in any application. You should prefer Executor and ExecutorService instead. They decouple the threading details away.
 
Rudra Narayan Garnaik
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.

Executor and ExecutorService
: I will check it. Is it not using Thread?

Nice got some idea to have a look.
 
Chris Hurst
Ranch Hand
Posts: 443
3
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look up J2EE work manager ...

The idea is you create units of work (I mainly work at the moment in Glassfish previously I used Weblogic and I've included some WebSphere info at the end) . Obviously it still results in threads but they are managed / pool'ed by your container and configuration can be exposed by your container.

WorkManager

Just google it for loads of info ...

WorkManager Info
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!