Axis2 contexts

The Axis2 context hierarchy is the runtime data representation of Axis2. Runtime data comes into the picture only when Axis2 receives a message, (unlike descriptions). The runtime data is used to share data across multiple invocations or among the handlers in one invocation. When we were discussing the description hierarchy, we talked about how parameters act as the main configuration mechanism. In context, the main configuration or data sharing mechanism is the use of Properties. Unlike parameters, we do not need to define properties anywhere, as we can create them on-the-fly and use them. Properties are stored as name-value pairs in the context hierarchy. Hence, if we add a property to the context, then that property can be accessed ...

Get Apache Axis2 Web Services Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.