
104 Enabling SOA Using WebSphere Messaging
}
catch(...) {
...
}
}
}
Design for stateless services
Service calls should be independent, self-contained requests. Service providers
should not hold states from earlier processing, but they should receive state as
part of the service parameters. Note that the fact that a service provider can also
act as a service consumer does not break this rule, as its lifetime as a service
consumer is limited to the duration of dependent service calls and so is their
ability of holding state.
Stateless services do not require a service consumer and a specific, executable
instance of the service provider to maintain a relat ...