Stacking the deck by integrating Spring beans and Seam
By attending this talk, developers can suppress their anxiety about the coexistence of the two frameworks, open their eyes to the potential that each boasts, and learn how to combine them to create a more powerful tool for their development toolbox.
The Spring Framework and JBoss Seam are both lightweight inversion of control (IoC) and aspect-oriented (AOP) containers that champion the POJO programming model, though with slight variations. Each framework offers a dependency injection (DI) mechanism, ORM integration, declarative transactions, web service clients and endpoints, asynchronous messaging support, and other parallel integrations. The apparent overlap in the goals and features of these two frameworks has bred staunch competition amongst them, causing sparks to fly at times. This situation leaves the developer feeling conflicted as to which framework to employ and master. The choice, however, is not an exclusive one. In the dog eat dog world of today's technology market, the opportunity to create a federation between application frameworks is often overlooked. Spring and Seam share this symbiosis. POJO programming, which is endorsed by both frameworks, yields reusable objects that are not tied to infrastructure services and can thus be used in standalone environments. For Spring classes, that alternate environment can be a Seam application. This session will demonstrate how it is possible to take advantage of the vast, capable, and mature Spring APIs from within a Seam application, how Seam can leverage existing Spring components, and how Seam can contribute its capabilities back to the Spring container. Finally, this session will demonstrate how Spring and Seam can share resources, namely ORM persistence contexts and global transactions. This session hopes to raise awareness of the benefits of this union.
About Dan Allen
Dan Allen is a member of the Seam and Web Beans project teams at JBoss by Red Hat, author of Seam in Action and a frequent speaker at major industry conferences such as JavaOne, Devoxx, TSSJS, Jazoon and JSFOne. Dan is known for his passionate work, with nearly a decade of development experience using technologies that include Java frameworks (Seam, JSF, EJB3, Hibernate, Spring, Struts), testing frameworks (JUnit, TestNG), JavaScript and DOM scripting, CSS and page layouts, Maven 2, Ant, Groovy, and many others.
Quickly after graduating from college, Dan became captivated by the world of free and open source software (FOSS). His involvment in FOSS helped him transition into the software development industry. He soon discovered the combination of Linux and the Java EE platform to be the ideal blend on which to build his professional career. In his search for a robust Web framework, Dan discovered JBoss Seam, which was quickly granted this most coveted spot in his development toolbox. The rest, as they say, is history. Dan is also a dedicated open source and Linux advocate and blogs about his experiences regularly. You can keep up with his discoveries by subscribing to his blog at http://mojavelinux.com.
