I have web application deployed in apache tomcat server and I need to start another console application (socket server) after primary web app was deployed. This socket server in the same WAR file as the primary app and has access to all beans and classes of web application.
I need to start it after starting tomcat with deployed web application (not after opening index page of app or something else)
How can I do that?
I have web application deployed in apache tomcat server and I need to start
Share
You need to implement
ServletContextListnerinterfaceAnd configure it in your deployment descriptor
web.xml