cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Minto van der Sluis (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-5053) JAX-RS behavior differs from JAX-WS for MessageContext.get( Message.class.getName() )
Date Mon, 03 Jun 2013 18:40:20 GMT
Minto van der Sluis created CXF-5053:
----------------------------------------

             Summary: 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: Bug
          Components: JAX-RS
            Reporter: Minto van der Sluis


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