Calling A Class Running On Tomcat JVM Externally

I will try to explain this the best I can, so here goes!

I have a class that has a public static void main() method running on Tomcat JVM. Now I have another class which is basically a Thread which reads a message topic every minute.

My question is how do I call the class running on Tomcat fom the Thread.

Is it just like calling any other class? And what about security? Any tips on this would be nice. If you need some extra info, please do let me know.

Answer

Attribution
Source : Link , Question Author : hell_storm2004 , Answer Author : Community

Leave a Comment