cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CXF-5053) JAX-RS behavior differs from JAX-WS for MessageContext.get( Message.class.getName() )
Date Tue, 04 Jun 2013 11:05:23 GMT

     [ https://issues.apache.org/jira/browse/CXF-5053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sergey Beryozkin resolved CXF-5053.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0.0
                   2.7.6
                   2.6.9
                   2.5.11
         Assignee: Sergey Beryozkin

thanks for a patch
                
> JAX-RS behavior differs from JAX-WS for MessageContext.get( Message.class.getName() )

> --------------------------------------------------------------------------------------
>
>                 Key: CXF-5053
>                 URL: https://issues.apache.org/jira/browse/CXF-5053
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>            Reporter: Minto van der Sluis
>            Assignee: Sergey Beryozkin
>             Fix For: 2.5.11, 2.6.9, 2.7.6, 3.0.0
>
>         Attachments: jira-5053.patch
>
>
> In JAX-WS:
>   WebServiceContext webServiceContext; // injected with proper value.
>   Message message = Message.class.cast( webServiceContext.getMessageContext().get( Message.class.getName()
) );
> results in a valid message object reference (not null)
> In JAX-RS however similar code:
>   MessageContext jaxrsContext; // injected with proper value.
>   Message message = Message.class.cast( jaxrsContext.get( Message.class.getName() ) );
> results in an invalid message object (null);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message