Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 2005 Finetix LLC All Rights Reserved 0 SpringFramework.Java Developer Session Solomon Duskis The Peer Frameworks Series -.Net and Java.

Similar presentations


Presentation on theme: "Copyright © 2005 Finetix LLC All Rights Reserved 0 SpringFramework.Java Developer Session Solomon Duskis The Peer Frameworks Series -.Net and Java."— Presentation transcript:

1 Copyright © 2005 Finetix LLC All Rights Reserved 0 SpringFramework.Java Developer Session Solomon Duskis The Peer Frameworks Series -.Net and Java

2 Copyright © 2005 Finetix LLC All Rights Reserved 1 SpringFramework Release  "Simple thing should be simple, and complex things should be possible." - Alan Kay "Unless simple things are simple, complex things are impossible." - Rod Johnson  Spring 0.9 announced at The Serverside Java Symposium 2002

3 Copyright © 2005 Finetix LLC All Rights Reserved 2 J2EE Design and Development

4 Copyright © 2005 Finetix LLC All Rights Reserved 3 Anti-EJB  Spring In Action (Craig Walls) – EJB is complex, not for just being complex. It is complex because it attempts to provide solutions for complex problems  The complex problems include distributed transactions across a variety of system types, including Relational Databases, MoM and Legacy Systems  2004

5 Copyright © 2005 Finetix LLC All Rights Reserved 4 J2EE Development without EJB

6 Copyright © 2005 Finetix LLC All Rights Reserved 5 Martin Fowloer on IoC Containers  Martin Fowler (IoC Containers and the DIP) – Inversion of control is a common characteristic of frameworks, so saying that these lightweight containers are special because they use inversion of control is like saying my car is special because it has wheels… For this new breed of containers the inversion is about how they lookup a plugin implementation.

7 Copyright © 2005 Finetix LLC All Rights Reserved 6 Today

8 7 People  Interface21 – International consulting company run by Rod Johnson. The Interface21 consultants are the core Spring Framework Developers.  Matt Raible: Creator of AppFuse Strategic adoption in many enterprises moving away from traditional costly, inefficient J2EE approaches This new paradigm is realized through WebLogic Real Time (WLRT). Extensive and growing usage across many industrites including: Retail and Investment banks, Insurance companies (US and Europe) and even Governments. In Banking: 5 out of the world's 10 largest banks are Spring users and Interface21 clients. That's pretty impressive IMO. Spring 2.0: builds on the solid base, pursues vision of POJO-based development and adds new capabilities and makes many tasks more elegant. They're hoping to release 2.0 in May 2006.

9 Copyright © 2005 Finetix LLC All Rights Reserved 8 Java Frameworks Galore

10 Copyright © 2005 Finetix LLC All Rights Reserved 9 Spring DataSource Configuration

11 Copyright © 2005 Finetix LLC All Rights Reserved 10 Spring Session Factory Configuration product.hbm.xml ${hibernate.dialect}

12 Copyright © 2005 Finetix LLC All Rights Reserved 11 Spring Dao Configuration

13 Copyright © 2005 Finetix LLC All Rights Reserved 12 Java Hibernate Dao Code public class ProductDaoImpl extends HibernateDaoSupport implements ProductDao { public Collection loadProductsByCategory(String category) throws DataAccessException { return getHibernateTemplate().find( "from test.Product product where product.category=?", category); }

14 Copyright © 2005 Finetix LLC All Rights Reserved 13 Declarative Transaction Configuration <bean id="myTxInterceptor" class="org.springframework.transaction.interceptor.TransactionInterceptor"> product.ProductService.increasePrice*=PROPAGATION_REQUIRED product.ProductService.someOtherBusinessMethod=PROPAGATION_MANDATORY product.ProductService myTxInterceptor myProductServiceTarget

15 Copyright © 2005 Finetix LLC All Rights Reserved 14 Service Code, Fully Transactional via IoC/AOP public class ProductServiceImpl implements ProductService { private ProductDao productDao; public void setProductDao(ProductDao productDao) { this.productDao = productDao; } public void increasePriceOfAllProductsInCategory(final String category) { List productsToChange = this.productDAO.loadProductsByCategory(category);... }... }


Download ppt "Copyright © 2005 Finetix LLC All Rights Reserved 0 SpringFramework.Java Developer Session Solomon Duskis The Peer Frameworks Series -.Net and Java."

Similar presentations


Ads by Google