I have a web service with a logical message handler in front.
And here is what I do:
1. In my handler I set a HANDLER scoped custom property using the LogicalMessageContext.put() and LogicalMessageContext.setScope() methods - before the web service method is called by the web service runtime.
2. The web service method throws a business exception.
3. In the handleFault() method of my handler I try to retrieve the value of my custom property using LogicalMessageContext.get() method but it returns null.
I would expect that LogicalMessageContext.get() returns the value what I've set.
I'm not sure if I've found a bug or my expectations are wrong (not according to the JAX-WS spec).