Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
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);