Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
453 views
in Technique[技术] by (71.8m points)

jar - How the complete flow of http request take place with java application

Please correct me where I am wrong. After completing coding and build. We can have jar ,war and ear. Jar can be turned into .exe for desktop application They can be used by other java application.

For having Java as web application , we need war which is deployed on application server like tomcat.

If there are multiple modules in java application we can have multiple war and these war can be deployed on a single server or multiple server.(how these will communicate is still my question)

Multi module application can also be combined into one package and ear can be created and deployed.

When ear/war is deployed and application is started. The main method is called and all required dependency injections are invoked .

When user connect to server the request is received at Port 80 and instance of objects are created and response is send .

The garbage collector will than kill the objects .

How multiple users request are handle at same time? How single port 80 be used ? Will web container of server create multiple threads by its own?

question from:https://stackoverflow.com/questions/66050172/how-the-complete-flow-of-http-request-take-place-with-java-application

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...