Topic: JBoss vs. Spring
Spring
What is Spring by Rod Johnson
http://www.theserverside.com/tt/articles/article.tss?l=IntrotoSpring25
- Spring IoC
- Spring AOP
- Spring Tx
- Spring "data access templates" (JpaTemplate, HibernateJpaTemplate, SimpleJdbcTemplate, ...)
- Spring MVC
- JMS support (as a client)
- Dynamic langs support - beans written in JRuby / Groovy / BeanShell and loaded from a source file.
Spring IoC
A simple proxy-based IoC framework.
+ Simple to use.
+ Widely supported.
- Beans must use the interfaces.
- The only scopes: Singleton, Prototype (new object created for each request), custom (must be coded)
Testability: Spring IoC vs. JBoss Microcontainer
Testability: Spring IoC vs. JBoss Embeded
http://shrubbery.mynetgear.net/wiki/Embedded_JBoss_/_Embedded_EJB3
http://www.jboss.org/community/wiki/EmbeddedAndJUnit
<properties> <jboss.embedded.version>beta3.SP12</jboss.embedded.version> </properties> <dependencies> <dependency> <groupId>org.jboss.embedded</groupId> <artifactId>jboss-embedded-all</artifactId> <version>${jboss.embedded.version}</version> <scope>test</scope> <exclusions> <exclusion> <groupId>org.jboss.microcontainer</groupId> <artifactId>jboss-deployers-client-spi</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.jboss.embedded</groupId> <artifactId>thirdparty-all</artifactId> <version>${jboss.embedded.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.embedded</groupId> <artifactId>hibernate-all</artifactId> <version>${jboss.embedded.version}</version> <scope>test</scope> </dependency> </dependencies>
Spring AOP vs. JBoss AOP
http://ondra.zizka.cz/stranky/programovani/java/jboss-aop-howto-example-standalone-app.texy
A Look Inside the JBoss Microcontainer, Part I – Component Models
A Look Inside JBoss Microcontainer, Part II – Advanced Dependency Injection and IoC
JMS support:
Chapter 19. JMS (Java Message Service)
http://static.springsource.org/spring/docs/2.5.x/reference/jms.html
Comments