This content has been marked as final.
Show 2 replies
-
1. Re: Merging WARs under common context root?
ctomc Jun 17, 2016 9:23 AM (in response to nickarls)1 of 1 people found this helpfulWell "everything is possible if you are brave enough (tm)"
Thing is that by servlet spec, only one application can be bound to single context root.
so you could only have one servlet app bound to /API root.
but nothing stops you to for example deploy one app to /invoces another under /purchase etc etc.
and than in undertow subsystem configuration add proxy / rewrite / redirect handlers to expose those apps under any context path you wish.
or you can even go more hardcore and implement ServletExtension where you can completely modify behavior of application handlers and custom paths anyway you want.
-
2. Re: Merging WARs under common context root?
nickarls Jun 18, 2016 10:44 AM (in response to ctomc)Oh yeah, a rewrite to point at the different context root is probably easiest.