|
|
| J2EE Patterns Forum |
RSS Feed URL : http://www.theserverside.com/rss/theserverside-j2eepatterns-rss2.xml Category : Java Total Views : 17 |
| Latest entries from this feed url |
Session management shift pattern in RIA In Short: User Session belongs to a browser instances, keep it where it belongs<br><br>Problem: The problems in having server side session are provided below:<br>1.Hit on server scalability; even if we keep only minimum data in session (based on users)<br>2.The performance impact of round-trips of passing the session data to browser<br>3. Cookie has size restrictions

 Overriding internet data during testing Many times during testing there is a need to override interent data (IP, cookies, HTTP headers) to simulate different use cases.<br>This pattern describes how to override internet data for testing without the usual testing-specific clutter in the code.

 Applying database access control by wrapping the EntityManager 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.

 MTOM vs SWA vs Base64Binary 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 with Azuki framework Multi-dimensional weaving refers to the variety of assembly methods used in Azuki for inter-bean communications.

 Chain of Responsibility 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.

 Employing SoA for coupling components/mashups in RIA 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.

 Implicitly Context Object: A Context Object variation 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.

 Create Web services in two clicks thanks to Apache CXF and AOP <a href="http://www.azuki-framework.org/wiki/index.php?title=Tutorial_bean200">This brief article</a> 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.

 Hierarchically assembling swappable modules to build 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.


|
|
|