[ https://issues.apache.org/jira/browse/TOMEE-2100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
TURPIN Michel updated TOMEE-2100: --------------------------------- Docs Text: >From JaxRS 2.1 Specification : Application-supplied providers may be annotated with @Priority. If two or more providers are candidates for a certain task, the one with the highest priority is chosen: the highest priority is defined to be the one with the lowest value in this case. That is, @Priority(1) is higher than @Priority(10). If two or more providers are eligible and have identical priorities, one is chosen in an implementation dependent manner. The default priority for all providers is javax.ws.rs.Priorities.USER. was: >From JaxRS 2.1 Specification : {quote}Application-supplied providers may be annotated with @Priority. If two or more providers are candidates for a certain task, the one with the highest priority is chosen: the highest priority is defined to be the one with the lowest value in this case. That is, @Priority(1) is higher than @Priority(10). If two or more providers are eligible and have identical priorities, one is chosen in an implementation dependent manner. The default priority for all providers is javax.ws.rs.Priorities.USER.{quote} > Jax-RS Providers are ordered by name instead of priority > -------------------------------------------------------- > > Key: TOMEE-2100 > URL: https://issues.apache.org/jira/browse/TOMEE-2100 > Project: TomEE > Issue Type: Bug > Components: TomEE Core Server > Affects Versions: 7.0.3 > Reporter: TURPIN Michel > Labels: features > Attachments: tomee-priority.zip > > > 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)