I have not yet experienced any serialization-related issues. But PMD and Findbugs detect a bunch of potential problems regarding seriazation. A typical case is an injected logger that is being detected as non-serializable. but there are many more - `EntityManager` and several CDI beans. 

I have not found any best practices on how to deal with serialization correctly.

* will the fields, injected by `@Inject` and `@PersistenceContext` be reinjected on deserialization?
* should they be marked as `transient`?
* or should I just ignore/switch off the code checks?
* should I really provide accessors to all those fields as PMD advises?