This week's book giveaway is in the Spring forum. We're giving away four copies of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 and have Marten Deinum & Iuliana Cosmina on-line! See this thread for details.
I have a question, if I have an ejb .. @Stateful and @ConversationScope, the client (jsf) makes a request to my ejb, the ejb starts a conversation.begin() .... do something and show the response to the client ... the client makes a another request where now do something and close the conversation (conversation.end()) .... the ejb @Stateful is removed too? Or i have to explicit call @Remove ?
If you want to remove the Stateful You have to call a Method annotated with @Remove.
But You can also annotate the Statefule with the @StatefulTimeout this means that after the unit value that You speified the container should remove the bean if the bean is idle.
Pay attention that the @PreDestroy Method is not called in this case (@StatefulTimeout).