TechnoBuzz

A Techno Blog, mainly about Java

Frameworks and such

A co-worker pointed me to this article by Rod Johnson on J2EE frameworks and the application programming model. The article is dated as January 2005.

The application code calls a class to perform a service (i.e LOG4J) ,  whereas a framework calls application code and manages the flow of control.

Thus, frameworks are are a set of classes that make up a resusable design that are used by extending them rather than instantiating them. One important point on that is mentioned is that successful open source frameworks are better tested than creating an in house one. People are more open to adpot an open source framework if it delivers clear benefits, whereas in house frameworks are often mandated.

Struts – an open source MVC framework (pull data from model, pushes data to view). Its a layer on top of the Servlet/JSP model.

Hibernate – first popular O/R Mapping open source solution. It was poular due to ease of use.

Spring – integrating the application stack. Model in which application objects decopled from the J2EE environment (i.e reusable) and the framework instantiates the and configures them for use. Also, provides declaritive transaction managemnt of POJO.

Web Layer – accpets input from the user . Presents results it recives from the application layer for a given request. As well, displays an error messages or warnings. (Struts )

Application layer – accepts input from the web tier, invokes the
proper  application object. The application objects will invoke business object(s) to
accomplish the requested tasks. The results the application objects  recieve from the business objects are pushed presentation layer for display. (Spring)

 

Business  Layer – Made up of business objects which perform
specific tasks or services. They invoke data access objects to communicate
with the database.

Data Access  Layer –  This consists of data access objects that communicate
directly with the database. Data access
objects (DAOs) contain methods that each execute specific queries against the
database. DAOs extract the results of queries into object collections that are
returned to the business objects. (Hibernate)

 

 

Continue reading

Advertisements

August 20, 2005 Posted by | IoC | Leave a comment

vico.org

Link: patterns.

August 18, 2005 Posted by | Patterns & UML | Leave a comment

Tech Times

Link: SP Times.

August 15, 2005 Posted by | Weblogs | Leave a comment

Cluster-mania

Server side article on topic

clustering — that is, sharing of session data across multiple load-balanced web servers

[part 1] [part 2]

with JBOSS

what about caching

August 14, 2005 Posted by | SW Tools | 1 Comment

Hibernate/Jboss are anti-Spring

Link: mockhaug � Hibernate hates Spring:”Until Spring redesigns their Hibernate integration stuff, we simply cannot recommend it to our users. Some people think we should still recommend Spring to people, even though we think the Hibernate integration is flawed.”

August 13, 2005 Posted by | IoC | 1 Comment

JDJ

Link: Matt Raible @ JAVA DEVELOPER’S JOURNAL.

August 11, 2005 Posted by | JSF | Leave a comment

Dyna Forms

Denver Java Users Group has a talk on Dynamic Struts Forms.

I noticed they have a nice ppt presentation on Spring/Hibernate.

August 8, 2005 Posted by | Hibernate & ORM, IoC, Struts | Leave a comment

DynAPI

Link: DynAPI.


Documents

August 7, 2005 Posted by | Web Design | Leave a comment

J2EE Programming Forums – General: 20 Sites for Java Developers

Link: Javalobby – Java J2EE Programming Forums – General: 20 Sites for Java Developers.

Rod Johnson on Persistence

August 5, 2005 Posted by | Hibernate & ORM | 1 Comment