From what I understand @Stateless means that the state of every encountering of a client to a server is starting from scratch, and @Stateful means that the server saves in his memory the client's data.
("stateless means there is no memory of the past. Every transaction is performed as if it were being done for the very first time.
statefull means that there is memory of the past. Previous transactions are remembered and may affect the current transaction.").
I have been reading http://www.tutorialspoint.com/ejb/ejb_stateless_beans.htm and http://www.tutorialspoint.com/ejb/ejb_stateful_beans.htm.
The examples there show that in a @Stateless annotation, when the client exits and re-enters, it seems as if the server did save the data and presented the books that were added from the "previous" client, but in the @Stateful annotation it seems as if the server treated the returning client as a new one, and didn't save the list the client created.
I assume my misunderstanding has to do with misunderstanding of the terms "state", "memory" or "transaction", but at the moment, I am confused as the definition seems contradicting to the outputs.