This is bad design, but I want to feed my curiosity and I want to obtain my goal without using any framework.
I have a
Java Context Listener class, which creates a new object as a
Thread.
Listener Class:
And the other Class:
The problem is that
Tomcat doesn't deploy completely nor starts the web application, but it creates that object, which consists of an infinite while loop.
(A similar question has been addressed here:
https://coderanch.com/t/233736/threads/java/Servlet-Running-Infinite-loop )
I need to understand what would the smallest modifications be, in order for Tomcat to start completely, while the infinite loop would continue to execute.