This discussion is archived
1 Reply Latest reply: Oct 4, 2012 11:24 AM by 722711 RSS

How to kill a thread that was created in bean ?

938644 Newbie
Currently Being Moderated
Hi,
i want to print some text - using thread ( to avoid blocking the application untill it's printing ) which was created within a bean which is a part of EPN.
So, I create a thread within that bean but, when I want to update my app ( deploy ), I saw that the thread ( which was created already )
is still running.

Since i don't know when the bean is destroyed ( because it's part of the EPN ) , there is no way to know when to interrupt the thread and thus killing it .
The only thing i know is that it should be killed when I publish ( deploy) the application.
Is there a way to do that ?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points