Enterprise Java Patterns
Enterprise Java Patterns
Enterprise Java Patterns
|
Post a pattern
Post a pattern
Post a pattern
More patterns
More patterns
More patterns
Active Threads
Active Threads
Active Threads
|
|
In Short: User Session belongs to a browser instances, keep it where it belongs
Problem: The problems in having server side session are provided below: 1.Hit on server scalability; even if we keep only minimum data in session (based on users) 2.The performance impact of round-trips of passing the session data to browser 3. Cookie has size restrictions
Many times during testing there is a need to override interent data (IP, cookies, HTTP headers) to simulate different use cases. This pattern describes how to override internet data for testing without the usual testing-specific clutter in the code.
In my JEE5 apps, I use 3rd party ejb3 modules that don't know anything about my applications rules and database access control constraints. Normally I would have to modify the module's source in order to weave it properly into my application, but this gives me quite a job each time I want to upgrade the component, so I have to find a better way.
Transmitting complex data such as X-Rays, MRI Scans, Blueprints electronically has significant cost and time advantages over paper-based processes. MTOM, SwA and Base64Binary encoding offer green-friendly methods for eliminating paper-based processes through web services-based attachment transmission.
Multi-dimensional weaving refers to the variety of assembly methods used in Azuki for inter-bean communications.
Avoid coupling the sender of a request to its receiver by giving more than one object a chance to handle the request. Chain the receiving objects and pass the request along the chain until an object handles it.
This pattern outlines a different kind of ‘Service Oriented Architecture’ (SoA), which facilitates coupling of ‘loosely coupled’ components (e.g. mashups or widgets) in the webpage (or in RIA – Rich Internet Application). Where the mashups could be large GUI components, which may be fetched from disparate web-servers and incorporated into the RIA.
Passing request context around as method parameters might be awkward sometimes in java web applications. Using ThreadLocals we can very conviniently keep the context around and get it where ever we need without making it appear in method signature.
This brief article shows the power of the Aspect-Oriented Programming (AOP) through a simple example, where Web Services are created ex nihilo without adding a single line in the code of your Java application.
This pattern tries to emulate the proven Component based software engineering pattern for the physical products such as Computers and Automobiles. Hence hope/attempt to secure comparable productivity gains for the software makers.
There are cases when you want to convert your existing web tier to an AJAX friendly one for the benefit of presenting a more responsive visual interface to your users.
I want to hide my concrete domain pojos from other layers of the application. For example I have an Address interface and AddressImpl concrete impl. I dont want other layers to have any knowledge about AddressImpl. To encapsulate my concrete domain pojo, I let the corresponding interface provide a static Factory for creating the concrete pojo.
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.
|
|