Extending Java Web Applications with plugins

后端 未结 8 1136
一向
一向 2021-02-09 14:10

I have this web application that has grown to an unmanageable mess.

I want to split it into a common \"framework\" part (that still includes web stuff like pages and im

8条回答
  •  余生分开走
    2021-02-09 14:48

    "Also, I'm not sure if you can do a "forward" to another WAR in the server. The problem there is that forwards use a relative URL to the root of the Web App, and each WebApp has their own root, so you simply "can't get there from here". You can redirect, but that's not the same thing as a forward."

    You can forward to another WAR as long as that WAR lets someone do it.

    glassfish and multiple WARs of an EAR : that makes sense.

    If you put the MAIN classes in the shared CLASSPATH of tomcat, then you can put your individual PLUGINs in separate WAR files.

    The Main app can also be part of the TOMCAT servlet that you define in server.xml. This can be the MASTER SERVLET and all other WARs can be controlled by this master servlet.

    Does that make sense ?

    BR,
    ~A

提交回复
热议问题