Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andre-doherty opened this issue Nov 28, 2023 · 3 comments
Open

Comments

@andre-doherty
Copy link

Hello,

Regarding this issue : #16628
It looks like multiple instances of JaxRS applications in a single web application are supported.
I mean by that :

  • the source code of the webapplication contains several classes that derive jakarta.ws.rs.core.Application and annotated with : jakarta.ws.rs.ApplicationPath

Is that correct ?

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

  • only one of the two jaxrs applications appear in the json file produces and so in the openapi ui.
  • moreover paths are mixed between the two jaxrs apps

i am relying on jakarta ee 10 and mpOpenAPI-3.0

André

@WhiteCat22
Copy link
Member

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 jakartaee/rest#1158

Review support for Application subclasses: zero or more? zero or one?

@gcharters
Copy link
Member

gcharters commented Feb 23, 2024

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
Copy link
Author

Hello @gcharters, @WhiteCat22

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants