Hello,
How can I get separate (seam managed) entity manager instances for session and conversation bean? In session bean, I need method demarcation of transactions (e.g. changing skin and saving it) while various conversation beans use manual flush.
What happens here - if no conversation is active, and I change the skin, I get first instance of em, but nothing is flushed. After beginning conversation, i get another instance in conversation bean and that instance is shared with session bean.
Thanks
Create two SMPCs in components.xml and use one in conversation scoped beans and one in sessions. Of course, you can't share entities between them.