tomee-commits mailing list archives

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

    [ https://issues.apache.org/jira/browse/TOMEE-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16102212#comment-16102212
] 

ASF GitHub Bot commented on TOMEE-2100:
---------------------------------------

GitHub user jgallimore opened a pull request:

    https://github.com/apache/tomee/pull/96

    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 https://github.com/jgallimore/tomee tomee-2100

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

    https://github.com/apache/tomee/pull/96.patch

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 <jon@jrg.me.uk>
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: https://issues.apache.org/jira/browse/TOMEE-2100
>             Project: TomEE
>          Issue Type: New Feature
>          Components: TomEE Core Server
>    Affects Versions: 7.0.3
>            Reporter: TURPIN Michel
>              Labels: features
>         Attachments: tomee-priority.zip
>
>
> 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
(v6.4.14#64029)

Mime
View raw message