Separating the web server and application server, are they needed as java?

If we want to separate our web server and application server, do we need java on both machines? I had one employee who said to install jboss on both machines (this seems to defeat the goal if both machines have an installed application server) and the other says that just install jboss on one and apache on the other (application / web server -server).

I already have a web project setup and it uses servlets and JSP. JSPs display content while servlets perform an action. Servlets receive requests and redirect responses to the JSP. My question is: how to do this if the web server has only apache and therefore displays static content? I understand how to redirect requests from the web server to the application server, but what about saving the session state, is this done on the web server, and if so, how to do it?

If the login page is html and the content after html is logged in, then how can I prevent users from accessing the content if they are not logged in?

+3
source share
5 answers

.

  • - apache mod_jk, tomcat/jboss. java .

  • jsp (, tomcat/jboss) , java, -.

  • , , , . - (apache + no java) + - (, tomcat) + (jboss/glassfish)

.

+2

SiteMinder. . HTTP-, siteminder, siteminder . siteminder SMSESSION, JSESSIONID, .

0

Apache JSP. , Apache JSP.

, , , IIS - ( Java ), Apache , , , , , .

0

- .

-

. , - :

  • , - /jsp

  • . - apache

In your login example, the html page is served by apache, and the action of the html form points to your servlet for processing - so JBoss / java will still manage the session. Keep in mind that any static content that you want to use on the Apache server must be present on the web server.

0
source

Source: https://habr.com/ru/post/1710675/


All Articles