As we know by now, Axis2 architecture keeps logic and data separate. In the meantime, Axis2 has two types of data models— static data and runtime data . We have already discussed these in detail. In this chapter, we will discuss more about Axis2 dynamic data hierarchy because session management fully depends on the runtime data. The samples in this chapter will help you understand more about runtime and static data, and most importantly, where to use what.
In Axis2 framework, each individual component is said to be
stateless. In other words, service implementation class or handlers should not try to store any local variable. Having stateless instances provides better support to reduce the concurrency control issues; this is due to the race conditions. In Axis2 handlers,
MessageReceivers
, TransportSenders
, TransportReceivers
, and even AxisEngine
, are said to be stateless. So they do not keep any state in those classes. As a result of that, we do not mind whether...