Enterprise Java PatternsEnterprise Java PatternsEnterprise Java Patterns |
Post a pattern
Post a pattern
Post a pattern
More patterns
More patterns
More patterns
Active Threads
Active Threads
Active Threads
|
|
You are iterating over a collection or array in a ugly old manner.
Solution: Replace the iteration code with a for-each loop
We have a Problem of Data Access to Multiple Data Sources (Siebel,Active Directory , Oracle ) simlatenously.
IConnection Interface, which will encapsulate the methods for Data Operation, Add, Update, delete, execute and get. Different type of connection can have the concrete implementation differently
Persistent Domain Objects Pattern gives a solution to the, often-observed, tight-coupling of the persistence and application logic code. PDO decouples those by extracting the details of the persistence implementation and hiding it behind an interface, employing Dependency Injection techniques. The resulting code is cleaner, easier to test, more extensible.
This refactoring introduces an adapter to the code to move data extraction logic to the adapter.
This pattern implements the idea of viewstate used in ASP.NET application. It addresses the problem of storing the viewing state at the presentation layer especially when dynamic complex user interaction is required.
Problem: synchronizing CRUD operations over mutiple data sources (i.e. multiple databases)
Solution: The Synchronizing Data Access Object (SDAO) design pattern adds a second layer of abstraction. Extending the traditional Data Access Object design pattern, the SDAO acts on multiple Data Sources, rather than one specific DataSource.
This web pattern defines a cross domain cookie provider to get around the two dot rule for cookie domains. The pattern is implemented using pure HTTP and is totally transparent to all upstream and downstream participants. Useful for implementing single sign on, browser tagging, or sessioning. Cross domain cookies cannot contain volatile data.
Unlike EJB CMP, Hibernate allows you to persist private fields and proprerties in objects. This allows you to encapsulate some domain (business) logic in your persistent objects, avoiding the anemic domain model" antipattern.
This pattern (it's more of a framework, based on a simple concept) adresses multi-profile (users, roles, groups, etc) access to applications. It allows to define "actions" that will be executed at run-time for some "objects" in the application and for some "profiles". This allows for example to have custom web pages upon who's browsing them with a clear design.
a combination of known patterns (Service Locator, business delegate and EJB home factory) with a little extra, the EJBServices class encapsulates ejb's Jndi Names and Home Clases
This pattern combines EJB Command pattern with EJB 2.1 Timer service. With it you can execute arbitrary scheduled tasks with just one Session bean.
Forget DAO classes since now. Use GQO best practice to avoid unnecessary development of DAO classes and also gain more.
More patterns
|
|
|
EJB Design Patterns PDFEJB Design Patterns PDFEJB Design Patterns PDF |
|
|
EJB Design Patterns is now available for free download in PDF format. The book contains a catalog of twenty advanced EJB patterns and provides strategies for mapping application requirements to patterns-driven design, J2EE development best practices, and more. EJB Design Patterns was the #2 book at Java One 2002, and held the #1 Java book position on Amazon.com for weeks since the book was released in March. Download your PDF here.
|
Useful patterns around the webUseful patterns around the webUseful patterns around the web |
|
|
This
essential pattern describes how to model your entity beans.
How to make an entity bean a facade to a set of dependent objects.
Every guru should use unit testing.
|
Other Patterns sitesOther Patterns sitesOther Patterns sites |
|
|
The original reference
site for patterns. Frequented by the gang of 4 and their mentors (Kent Beck, Ward Cunningham).
A catalogue of J2EE design patterns from Suns Consulting Division.
A catalogue of
high level business, architectural and topological patterns for large scale systems.
Design Patterns from the J2EE Blueprints, Suns authoritative guide to J2EE development.
|
|