Community
Participate
Working Groups
No API currently exists on "WebUtilities" class to return the web context root based on either the component property if standalone, or via the Ear module's property.
Created attachment 200945 [details] patch
Chuck, in the case of an EAR 5 or EAR 6 where there is no application.xml, the context root of a web module is the module name. Have you tested that scenario with this API?
I need to make sure... but actually.. because there is a property in the component model for context root... if nothing is defined by the ear... then the war's property is used.
Created attachment 202929 [details] new patch with junit
All scenarios check out.... included in ear or now... Ear has DD or not etc...
Code dropped