Skip to content

Instantly share code, notes, and snippets.

@vackosar
Created April 18, 2015 15:10
Show Gist options
  • Save vackosar/bf3fb1f9484e08a49b60 to your computer and use it in GitHub Desktop.
Save vackosar/bf3fb1f9484e08a49b60 to your computer and use it in GitHub Desktop.
JEE vs Spring: Spring Bean Scopes vs JEE Bean Types
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