OpenLiberty / open-liberty

Open Liberty is a highly composable, fast to start, dynamic application server runtime environment
https://openliberty.io
Eclipse Public License 2.0
1.15k stars 592 forks source link

MPOpenAPI : multiple jax-rs applications in same webapplication support #27055

Open andre-doherty opened 11 months ago

andre-doherty commented 11 months ago

Hello,

Regarding this issue : https://github.com/OpenLiberty/open-liberty/issues/16628 It looks like multiple instances of JaxRS applications in a single web application are supported. I mean by that :

Is that correct ?

If that assumption is correct, the behavior i am meeting is not OK :

i am relying on jakarta ee 10 and mpOpenAPI-3.0

André

WhiteCat22 commented 11 months ago

Hi @andre-doherty

Currently, the JAX-RS spec does not mandate support for more than 1 JAX-RS application per war file. This is going to change in 4.0 (EE11).

See https://github.com/jakartaee/rest/issues/1158

Review support for Application subclasses: zero or more? zero or one?
gcharters commented 8 months ago

Hi @andre-doherty, #16628 added support to the OpenAPI UI for the case where there are multiple WAR modules deployed (either separately or in a single EAR). It does not cover the case where there are multiple jax-rs Applications in a single WAR.

Multiple jax-rs Applications within a single WAR is not currently supported. If multiple Applications are required, the solution is it to put each in its own WAR.

andre-doherty commented 8 months ago

Hello @gcharters, @WhiteCat22

Thank you both for the precision. Hopefully multiple applications contract generation will be supported in ee11. Regards, André