Sharing an application context between two WARs?

前端 未结 7 1125
执笔经年
执笔经年 2020-12-30 08:26

Is there a way to share an app-context between two deployed wars? One war needs to wire-in the services of another, and I don\'t know where to start with this.

相关标签:
7条回答
  • 2020-12-30 08:55

    Agreed with @RichardSmith, the accepted answer was not helpful for me. While Richard's answer was helpful in pointing me in the right direction, I'm using Jetty so I can't use EAR. I ended up using the server context to share an object(s) between wars - works even with hot-(re)deployed webapps:

    https://stackoverflow.com/a/46968645/1287091

    Probably a way to adapt this for Tomcat as well.

    0 讨论(0)
提交回复
热议问题