JaiswalTraining

Get the online training



Corejava Servlet Jsp  Php  Hibernate  Ajax Web Service   Ejb2.1 Ejb3.0 Struts Struts2  JPA Spring Ibatis   JSF    JSF2.0  CoreJavaDesignPattern    Jquery  Flex J2EE-Design-Patterns  Jboss7  Maven  Contact Me                                                                                                                                                                        
            IGNOU SMU PTU Project                                           Training                                                                                                                              
              

Contact Us  0091- 9210721663         jaiswaltraining@gmail.com




Corejava
Servlet
Jsp
Php
Hibernate
Ajax
Web Service
Ejb2.1
Ejb3.0
Struts  
Struts2
JPA
Spring
Ibatis
JSF
JSF2.0
CoreJavaDesignPattern
Jquery
Flex
J2EE-Design-Patterns
Jboss7
Maven







Introducing J2EE Patterns

  • J2EE is a relatively new platform for delivering Web-based applications
  • It is difficult to design reusable, flexible object oriented applications
  • Task becomes more complex, when there are distributed and transactional objects.
  • J2EE patterns facilitate the design process by providing a collection of proven
    design patterns
  • It is often challenging to design reusable, flexible object-oriented applications.
  • When the objects are distributed and transactional, the task becomes even
    more complex. 
  • The design process can be facilitated with a collection of proven design patterns for developers to adopt J2EE components to understand different problems and solutions

Using the J2EE Patterns

When creating the design of the system, J2EE patterns can be chosen to
ensure the following:
Modularity
  •  Protection and Exposure
  •  Component Extensibility
  •  Roles and Responsibilities
  •  Contracts
  •  Pluggable behavior
  •  Performance
Features of J2EE patterns

  •  The main goals of the J2EE patterns are
  •  Reduce coupling and dependencies between components
  •  Minimize network traffic
  •  Built on other patterns, such as “Gang of Four” patterns
J2EE Patterns in terms of “Tiers”

  •  J2EE Platform is a multitiered system, the system is viewed in terms of “tiers”
  •  A tier is a logical partition of the separation of concerns in the system
  •  Five tiers are identified:
    •  Client Tier
    •  Presentation Tier
    •  Business Tier
    •  Integration Tier
    •  Resource Tier
  •  J2EE patterns are classified according to the tiered approach
  •  J2EE patterns addresses the following tiers
    • Presentation Tier
    • Business Tier
    • Integration Tier

Three categories of patterns are identified
  • Presentation Tier Patterns
  • Business Tier Patterns
  • Integration Tier Patterns

Patterns and Partitioning

  • 21 patterns partitioned into tiers along Blueprints lines
    •  Presentation Tier
  •  Best practices for building presentation components
    •  JSP, Servlets, XML/XSL
  •  Business Tier
    •  Concerned with managing persistence and business processing
    •  EJB, JNDI
  •  Integration Tier
  •  Issues surrounding Integration with other technology
    • – JDBC, JMS
Pattern Template

  •  J2EE patterns are all structured according to a defined pattern template
  •  The following template is adopted for J2EE patterns
    • Problem:- Design issues faced by the developer.
    • Forces:- Lists the reason and motivations that affect the problem and the solution
    •  Solution:-Describe the solution approach briefly
      •  Structure:-Uses UML diagrams to show the basic structure of the solution
      •  Strategies:-Describe different ways a pattern can be implemented
    • Consequences:-Describe the pattern trade-offs
    •  Sample Code:-Example implementations and Code listings
    •  Related Patterns:-Other relevant patterns