Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Comment lines: Geoff Hambrick: Introducing the EJB Advocate

Geoff Hambrick (ghambric@us.ibm.com), Distinguished Engineer, IBM
Author photo
Geoff Hambrick is a lead consultant with the IBM Software Services for WebSphere Enablement Team and lives in Round Rock, Texas (near to Austin). The Enablement Team generally helps support the pre-sales process through deep technical briefings and short term Proof of Concept engagements. Geoff was appointed an IBM Distinguished Engineer in March of 2004 for his work in creating and disseminating best practices for developing J2EE applications hosted on IBM WebSphere Application Server.

Summary:  Service Oriented Architectures and Service Data Objects have not eliminated the need for EJBs. In fact, EJBs play a central role in the implementation of both -- especially if your preferred programming language is Java™. To prevent misinformation from being spread about when various types of EJBs are best used (or not used), The EJB Advocate explores various EJB-related design issues.

Date:  26 Jan 2005
Level:  Introductory
Also available in:   Russian

Activity:  5855 views
Comments:  

From the IBM WebSphere Developer Technical Journal.

Introduction

Since the Enterprise JavaBean (EJB) 2.0 specification came out, I have not hesitated to recommend that developers use all the forms of EJBs -- in the proper context, of course. These forms include sessions (stateless and stateful), entities, and message driven beans (MDBs). The trouble is that two years later, many Java developers have not evolved their thinking along with the specification, and much misinformation is still being spread regarding when various types of EJBs are best used (or not used).

Many now believe that Service Oriented Architectures (SOAs) and Service Data Objects (SDOs) have eliminated the need for EJBs, concluding that there is no real need to evolve their thinking. Nothing could be farther from the truth. In fact, EJBs play a central role in the implementation of both -- especially if your preferred programming language is Java.

To address this situation, we have created The EJB Advocate, a new recurring column taking the point of view of someone who has no reservations about recommending EJBs under the right circumstances, and will be written in the style of an advice column -- except that each column will consist of the back-and-forth dialogue with a single "questioner" in the course of recommending a solution to an interesting design issue (instead of a brief treatment of many questions).

This approach simulates the flow of a typical consulting session, where an issue presented by a "client" usually leads to one or more questions by the "consultant" -- The EJB Advocate. The answers to those questions lead to a proposed solution, which may lead to other related issues that impact the final recommended solution. By the end, you should get a pretty good idea of some aspects to consider when choosing the right EJB for the job. You should also get a feel for why The EJB Advocate believes that: There are no bad patterns, only bad applications of patterns.


Read The EJB Advocate now

First up, The EJB Advocate explores the design issue of functional decomposition and how session EJBs can be used to solve this problem. In the end, you should have some insights into when remote and local interfaces to stateless and stateful session implementations could apply.

Read this month's column now.


Resources

About the author

Author photo

Geoff Hambrick is a lead consultant with the IBM Software Services for WebSphere Enablement Team and lives in Round Rock, Texas (near to Austin). The Enablement Team generally helps support the pre-sales process through deep technical briefings and short term Proof of Concept engagements. Geoff was appointed an IBM Distinguished Engineer in March of 2004 for his work in creating and disseminating best practices for developing J2EE applications hosted on IBM WebSphere Application Server.

Report abuse help

Report abuse

Thank you. This entry has been flagged for moderator attention.


Report abuse help

Report abuse

Report abuse submission failed. Please try again later.


developerWorks: Sign in


Need an IBM ID?
Forgot your IBM ID?


Forgot your password?
Change your password

By clicking Submit, you agree to the developerWorks terms of use.

 


The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

Choose your display name

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerWorks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

(Must be between 3 – 31 characters.)

By clicking Submit, you agree to the developerWorks terms of use.

 


Rate this article

Comments

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere
ArticleID=33369
ArticleTitle=Comment lines: Geoff Hambrick: Introducing the EJB Advocate
publish-date=01262005
author1-email=ghambric@us.ibm.com
author1-email-cc=

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

For articles in technology zones (such as Java technology, Linux, Open source, XML), Popular tags shows the top tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), Popular tags shows the top tags for just that product zone.

For articles in technology zones (such as Java technology, Linux, Open source, XML), My tags shows your tags for all technology zones. For articles in product zones (such as Info Mgmt, Rational, WebSphere), My tags shows your tags for just that product zone.

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.

Special offers