The main method in a Java application

Everywhere we read that to start a java program we need a starting point, and this is a static main method. In the Java EE application, where this core method is located. Is it embedded in the application server / container? How does this work and what changes can we make?

+4
source share
1 answer

C Java EEthere is no such thing as main. Depending on your configuration, everything binds to URLwhich will bind Bean. An example, if you use JSF, will be Faces-config.xml. If you use simple servlet, then it will be web.xml.

Java EE POST GET.

- Java Applet, main, Java EE.

, main, . , Tomcat, OC4j, GlassFish, Weblogic ..

+3

All Articles