Search code examples
javasessionjakarta-eeejbpersistence

How does Java EE application starts executing without any main method and how does control goes to different classes


How does Java EE application starts executing without any main method and how does control goes to different classes like EJB,Session,Persistence class etc. As per my understanding it starts with JSF or jsp page. Can someone elaborate as i am new to Java EE apps.


Solution

  • Java EE Servers or Java Servlet containers have a public static void main method which starts up the program. After that, most servers allocate a certain number of threads that listen and handle requests