How conversation scope in implemented in CDI?
It is done through some session key that holds so开发者_StackOverflow社区me structure?
CDI is a specification, so the conversation scope is only specified, not implemented. Different implementors may decide on different strategies. Currently there are three - Weld, OpenWebBeans and CanDI. I don't know how it is implemented, but there aren't many ways - using the session in some way is most likely.
see this tutorial
It's better to use portable CDI extensions like MyFaces CODI!
精彩评论