• Post Reply Bookmark Topic Watch Topic
  • New Topic

can i make my servlet to wait using wait method

 
ravi inguva
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
after making the servlet to wait using wait() then i want to notify that servlet using another servlet
is this possible
if so how to do that
thanks
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would have to have an object that was shared by the two servlets in order to use wait/notify.
Considering all of the things that could go wrong and leave you with a permanently waiting Thread, maybe you should redesign your application.
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!