Created
April 18, 2015 15:10
-
-
Save vackosar/bf3fb1f9484e08a49b60 to your computer and use it in GitHub Desktop.
JEE vs Spring: Spring Bean Scopes vs JEE Bean Types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Spring Singleton corresponds to either | |
- JEE stateless session bean | |
- or if it has internal state to JEE singleton | |
Spring Prototype corresponds to JEE stateful session bean. | |
Spring Scopes Session and Request correspond to CDI Scoped beans. However CDI does not support transactions in contrast to Spring Beans or JEE beans. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment