Hi!
Managing state with a web service means that some data that should have been stored in the requests is stored on the web service side. Commonly, but not always, statefulness is used due to a design flaw.
Stateful example:
When client A sends its first request to a stateful web service, the state is established and for every subsequent request from client A, the web service retains the state associated with client A.
Compare this to patients going to see the doctor. Statelessness is a patient going to see the doctor at a big hospital; the patient cannot choose which doctor to see, but sees a random doctor each time.
Statefulness is a patient going to see a specific doctor - the patient returns to the same clinic each visit and sees the same doctor.
I cannot see how WS-Addressing and WS-ReliableMessaging would be able to facilitate stateful web services.
Also, as far as I know, @Stateful is used to annotate a stateful session bean and in section 3.2.4 of the
EJB 3.1 specification it says:
Stateless session beans and Singleton session beans may have web service clients.
Thus you cannot expose a stateful session beans as a web service.
Best wishes!