tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (TOMEE-2100) Jax-RS Providers are ordered by ?hashcode? instead of priority
Date Wed, 26 Jul 2017 20:17:01 GMT


ASF GitHub Bot commented on TOMEE-2100:

GitHub user jgallimore opened a pull request:

    TOMEE-2100 add @Priority to default sorting

    This creates a default comparator when no setting for cxf.jaxrs.provider-comparator is
specified. This will order by priority first, but will still incorporate the default CXF sorting
where priorities are the same for backwards compatibility.

You can merge this pull request into a Git repository by running:

    $ git pull tomee-2100

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #96
commit a72f6d34b8bcd5740c976b4b2333268a6f5cfade
Author: Jonathan Gallimore <>
Date:   2017-07-26T15:15:13Z

    TOMEE-2100 add @Priority to default sorting


> Jax-RS Providers are ordered by ?hashcode? instead of priority
> --------------------------------------------------------------
>                 Key: TOMEE-2100
>                 URL:
>             Project: TomEE
>          Issue Type: New Feature
>          Components: TomEE Core Server
>    Affects Versions: 7.0.3
>            Reporter: TURPIN Michel
>              Labels: features
>         Attachments:
> When multiple providers share the same possible tasks, their priority is not taken into
consideration when it comes to choose the effective implementation. This would allow effective
overriding of providers, for instance using Jackson instead of Johnzon as a writer/reader.
> The attached zip contains a project with 5 body writers with differents priorities. You
may run it with the {{mvn clean package tomee:run}} command.
> The {{FooResource}} class is then accessible through the {{http://localhost:8080/tomee-priority/resources/foo/}}
URL. It must show "B".
> As I run it, it shows me "D", you might have different values.

This message was sent by Atlassian JIRA

View raw message