advertisement
javaboutique
Search Tips
Articles  |   Tutorials  |   Reviews  |   Tools  |   by Category  |   by Date  |   by Name  |   Submit  |   Source  |   Forums  |  
javaboutique
Browse DevX


Partners & Affiliates











advertisement

Reviews : Trader Pattern for Invoking Services :

Trader Pattern for Invoking Services

by: Samudra Gupta

Introduction

The world of Java now suffers from the problem of plenty. There are so many ways that an application can be developed and deployed. For example, you may decide to develop and deploy a piece of software as a web application or you may decide to deploy it as a traditional client-server application. As mature and experienced developers, we all know the decision-making factors, the pros and cons of any particular chosen method of deployment. However, the scalability aspect of an application can also be measured by how easily it can change the mode of deployment. In this article, we will see how a Trader pattern can help achieve flexible deployment options.

 

Motivation

In the recent days of enterprise application development, one of the strong features is the layered architecture. In this, we strive to achieve clear separation between the presentation and the business. The goal is that each must be able to work and change independent of the other. In this way, we tend to present business logics as Services. These business Services can be used by many clients at the same time. So long as, the required data is supplied to the business Service, the logic is performed and the result is returned to the client.

  In this model, one of the other conclusions is that these business Service components are server based, distributed by nature and capable of serving many clients at the same point of time. However, a good application architecture will suggest that the client of these business Services also need not know how these Services are deployed and how they are implemented internally. In other words, client programs should not have to change if, for example, we need to make any changes to the internal implementation in these Service components or if we decide to deploy the Service components in a completely new deployment environment.

  Just to make things easier, let us say we have a business Service component for the bank accounts. The task of this component is merely to retrieve the bank account details. Now we may decide this component to deploy in the web container as a simple JDBC based component or we may also decide to deploy this as an Entity bean in any EJB container. The question is should this decision affect the client to this program? The answer is simple,no.

  This is where the Trader pattern comes into the picture. In summary, the Trader pattern helps us achieve the following points:

     
  1. Provides a complete decoupling between the client and the way Service components are implemented and deployed.
  2. Configurable selection of the type of services to be deployed and also configurable deployment information.
  3. Highly scalable application architecture.

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

Elsewhere on internet.com:

WebDeveloper Java
Lots of Java information on webdeveloper.com

WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.

ScriptSearch Java
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.

 Microsoft Visual Studio 2010 Showcase
 Avaya Developer Showcase
 MSDN Spotlight
 PHP for Windows Showcase
XML error: undefined entity at line 39
advertisement
Receive Articles via our XML/RSS feed
Receive Articles via our XML/RSS feed

JavaBytes
Internet Cyclone
This powerful, easy-to-use, internet optimizer is for Windows 95, 98, ME, NT, 2000 and XP. It's designed to automatically optimize your Windows settings, boosting your Internet connection up to 200%.

Windows 7: From Beta to Final Code in One Year
Google Shows Off Chrome OS, Releases Source
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?
Fedora 12 Takes Aim at Linux Networking
Top Supercomputer Nearly Doubles in Speed
Fedora 12 Linux Tackles Virtualization
Apple Gives iPhone Developers App Status Tracker
Novell Sets OpenSUSE 11.2 Free

Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Exploring HTML 5's Audio/Video Multimedia Support
Overriding Virtual Functions? Use C++0x Attributes to Avoid Bugs.
Understanding the Cloud Computing Security Vulnerabilities
Cisco and IBM Target a Greener World
Upgrade to Visual Studio 2010 with the Ultimate Offer

Advertising Info  |   Member Services  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs