Welcome!

Weblogic Authors: Yeshim Deniz, Elizabeth White, Michael Meiner, Michael Bushong, Avi Rosenthal

Related Topics: Weblogic

Weblogic: Article

Pattern Matching

Pattern Matching

When I first graduated (well, actually, the second time) I had an offer from a company for a programming job. They were going to hire me, contingent upon my passing the IBM Programmer's Aptitude Test. So one day I drove my college junk heap an hour out of my way to take this test. I had to get an "A" to get the job. I was nervous, but once I got the test, I realized I needn't have worried - it was all about patterns.

It's both a relief and a disappointment in the programming business that nothing is really new. We keep solving the same old problems, sometimes in new ways, or with new tools. That's disappointing, but at the same time it allows us to focus on repeatability. It also lets us focus on the business side of our careers (i.e., the things that pay the bills) by developing a certain amount of productivity. In a sense, as knowledge workers (that's such a nasty term) we're like highly educated assembly-line workers - paid to do the same things over and over again. Our added value (and the justification for our billing rates or salaries) is that unlike an assembly line worker, who is normally given a set pattern, it's our job to identify patterns in business processes or their technical implementations, and take advantage of them for maximum efficiency.

Nowhere in programming are patterns and best practices more important than in the J2EE world. In the beginning, there were no J2EE patterns, and people did all sorts of strange things with their code. It compiled, it even ran, but at the end of the day it performed poorly.

You should, of course be familiar with the idea of patterns. If you're not, put this down, go buy Design Patterns by Gamma et al., and study up, then pick this issue up again.

Patterns are everywhere. The JavaBean and the EJB approach are based on patterns such as the getter/setter method of defining an attribute. Or the use of deployment descriptors.

But these aren't enough to ensure performance, which is why the folks at Sun put together the J2EE Blueprints. These are a group of patterns that help to optimize the performance of a J2EE application. The Fast Lane Reader pattern, for example, helps reduce the overhead of transferring read-only (or read mostly) data to user displays by avoiding the instantiation of entity beans. Because when you send the data across the EJB container to the Web container, you don't send the EJB, you send its data.

Even these patterns need proper care and feeding. It's easy to go overboard and make everything session beans (or even JSP pages), but this doesn't accomplish the goals of a partitioned architecture, nor does it leverage the transaction management and storage mechanisms of the EJB container. There's a balance to pattern usage, and it's very important to consider that balance before acting.

This issue presents some patterns for J2EE use. Properly designed, a J2EE application can scale to virtually any level of client support. Improperly designed, you can choke a user community to death with a system that cannot be saved even by throwing hardware at it. It's up to you to learn what patterns exist, and not just what patterns, but when it's appropriate to use them. Do so and you're on your way to the transition from programmer to architect. And to making things count for your business or client.

I got an "A" on the aptitude test, but I took a different job that paid better and offered more skill development in modern languages and systems. Did they really think I wanted to learn COBOL? Yikes!

More Stories By Sean Rhody

Sean Rhody is the founding-editor (1999) and editor-in-chief of SOA World Magazine. He is a respected industry expert on SOA and Web Services and a consultant with a leading consulting services company. Most recently, Sean served as the tech chair of SOA World Conference & Expo 2007 East.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


IoT & Smart Cities Stories
Dion Hinchcliffe is an internationally recognized digital expert, bestselling book author, frequent keynote speaker, analyst, futurist, and transformation expert based in Washington, DC. He is currently Chief Strategy Officer at the industry-leading digital strategy and online community solutions firm, 7Summits.
Digital Transformation is much more than a buzzword. The radical shift to digital mechanisms for almost every process is evident across all industries and verticals. This is often especially true in financial services, where the legacy environment is many times unable to keep up with the rapidly shifting demands of the consumer. The constant pressure to provide complete, omnichannel delivery of customer-facing solutions to meet both regulatory and customer demands is putting enormous pressure on...
IoT is rapidly becoming mainstream as more and more investments are made into the platforms and technology. As this movement continues to expand and gain momentum it creates a massive wall of noise that can be difficult to sift through. Unfortunately, this inevitably makes IoT less approachable for people to get started with and can hamper efforts to integrate this key technology into your own portfolio. There are so many connected products already in place today with many hundreds more on the h...
The standardization of container runtimes and images has sparked the creation of an almost overwhelming number of new open source projects that build on and otherwise work with these specifications. Of course, there's Kubernetes, which orchestrates and manages collections of containers. It was one of the first and best-known examples of projects that make containers truly useful for production use. However, more recently, the container ecosystem has truly exploded. A service mesh like Istio addr...
Digital Transformation: Preparing Cloud & IoT Security for the Age of Artificial Intelligence. As automation and artificial intelligence (AI) power solution development and delivery, many businesses need to build backend cloud capabilities. Well-poised organizations, marketing smart devices with AI and BlockChain capabilities prepare to refine compliance and regulatory capabilities in 2018. Volumes of health, financial, technical and privacy data, along with tightening compliance requirements by...
Charles Araujo is an industry analyst, internationally recognized authority on the Digital Enterprise and author of The Quantum Age of IT: Why Everything You Know About IT is About to Change. As Principal Analyst with Intellyx, he writes, speaks and advises organizations on how to navigate through this time of disruption. He is also the founder of The Institute for Digital Transformation and a sought after keynote speaker. He has been a regular contributor to both InformationWeek and CIO Insight...
Andrew Keys is Co-Founder of ConsenSys Enterprise. He comes to ConsenSys Enterprise with capital markets, technology and entrepreneurial experience. Previously, he worked for UBS investment bank in equities analysis. Later, he was responsible for the creation and distribution of life settlement products to hedge funds and investment banks. After, he co-founded a revenue cycle management company where he learned about Bitcoin and eventually Ethereal. Andrew's role at ConsenSys Enterprise is a mul...
To Really Work for Enterprises, MultiCloud Adoption Requires Far Better and Inclusive Cloud Monitoring and Cost Management … But How? Overwhelmingly, even as enterprises have adopted cloud computing and are expanding to multi-cloud computing, IT leaders remain concerned about how to monitor, manage and control costs across hybrid and multi-cloud deployments. It’s clear that traditional IT monitoring and management approaches, designed after all for on-premises data centers, are falling short in ...
In his general session at 19th Cloud Expo, Manish Dixit, VP of Product and Engineering at Dice, discussed how Dice leverages data insights and tools to help both tech professionals and recruiters better understand how skills relate to each other and which skills are in high demand using interactive visualizations and salary indicator tools to maximize earning potential. Manish Dixit is VP of Product and Engineering at Dice. As the leader of the Product, Engineering and Data Sciences team at D...
Dynatrace is an application performance management software company with products for the information technology departments and digital business owners of medium and large businesses. Building the Future of Monitoring with Artificial Intelligence. Today we can collect lots and lots of performance data. We build beautiful dashboards and even have fancy query languages to access and transform the data. Still performance data is a secret language only a couple of people understand. The more busine...