I have a session bean as follows. I want certain things to happen when the conversation times out. In my session bean I have injection to get my entity manager, I also have an entity bean in the session bean. When the context times out I want to do some things with the entity manager however when the context times out, all the attributes in the session bean that are retrieved via injection become null. The entity manager and the logger.
You certainly should not be accessing the database from a conversation timeout.