Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring Framework

 
raj joe
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me in puting my stake in Spring Framework

I have proposed arhiecture as below
Struts - Session Facade - DAO (JDBC) - DB (Offcourse with some J2EE patterns where applicable)

Can Spring cater to all features of presenation layer as struts?
How is the framework design for middle tier and data tier in spring?
What are all the J2ee patterns used in Spring?
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring has excellent DAO abstractions for Hibernate, JDBC, SQLMaps, and maybe some others. It provides declarative transaction support that's as feature complete as EJB's and easier to set up. It greatly simplifies building and configuring your service and business objects at startup with dependency injection.

Spring has it's own web MVC framework, but it also supplies abstractions for working with Struts, WebWork, Tapestry, and a few others I think.

With your use of the "Session Facade" pattern, are we to infer that you'll be using session EJBs to wrap/implement your DAOs? If you go with Spring, you can ditch EJBs and stick to straight-up J2EE running in a servlet container.

Good luck on your journey, and welcome to the One True Path.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic