ZDNet UK


Skip to Main Content

ZDNet.co.uk - Winner of Best Business Website 2007
  1. Home
  2. News
  3. Blogs
  4. Reviews
  5. Prices
  6. Resources
  7. Community
  8. My ZDNet

 

ZDNet UK RSS Feeds


IT Jobs

Office applications Toolkit

Using Java Beans to handle business logic

Jeff Hanson Builder.com

Published: 06 Mar 2003 14:21 GMT

  • Email
  • Trackback
  • Clip Link
  • Print friendly
  • Post Comment

The J2EE platform includes a specification for a distributed component model known as Enterprise JavaBeans (EJB). If you've worked with Java for a while, you probably have a basic understanding of EJB and its relationship with business logic. In this article, we'll dig a little deeper and see how EJB can be used to encapsulate business logic while interacting with other resources. You can download the sample code for this article here.

The sphere of tiers

Our investigation into middleware concepts begins by proposing an architecture consisting of one client tier and three server tiers. Our three server tiers are broken down as follows:

  • Presentation tier -- Responsible for fielding client requests, distributing those requests to business logic components, and then formatting a response to be passed back to the client
  • Business tier -- Responsible for accepting service requests from the presentation tier, accessing data resources and other enterprise systems, and returning result data to the presentation tier
  • Data tier -- Point of access for data resources and external enterprise systems

We use JavaBeans as data objects to pass back and forth between the server tiers. Figure A illustrates these concepts and components.


Figure A

Component model and EJB

A software component has a number of identifying characteristics:

  • Autonomous -- A software component should be able to perform its work independent of other components or applications.
  • Dynamically discoverable -- Although a software component may not need to be discovered dynamically in a desktop environment, it is almost always preferable in a distributed system environment.
  • Business process -- A software component should define a logical business process.
  • Consisting of externally published interfaces -- A software component should expose one or more interfaces, providing external access to the component's functionality.
  • Usable for building other components or applications -- A software component's primary job is to enable developers to build other components or applications by combining one or more components with custom application or system code.

To illustrate how components are used to build a more complex entity, we can compare a software component to a car part, where each car part (component) has a specific purpose (process). As long as a part has the correct wires and bolt holes (interfaces), it can be used in the assembly of a complete car (other components or applications).

Next

Previous

1 2


  • Email
  • Trackback
  • Clip Link
  • Print friendly Print with Dell

Did you find this article useful?
21 out of 39 people found this useful


Company/Topic Alerts

Create a new alert from the list below:





Related Jobs

Applications Management Team Systems Support Analyst - 00059405

To follow incident management processes in order to respond to support requests assigned by the helpdesk team - To follow change management processes ...

Applications Management Analyst

To follow incident management processes in order to respond to support requests assigned by the helpdesk team within agreed SLAs. Business Objects / ...

Application Architect - Performance and Capacity Management

Applicants should ensure that their CVs clearly describe by engagement or project: -the nature and complexity of the technical solution and number ...

Featured Talkback

Why do so many (virtually all) software packages think that they are so important that they have to be started automatically every time the computer boots? What is the largest number of "speed access", "update check", "camera download" and whatever other background programs you have ever seen running? Of those, how many did you really need?

By: J.A. Watson

Read full story:
Annoying software: a rogues' gallery

Discussions

AdamW AdamW

Linux, Laptops and Dual Displays

Saturday 26 July 2008, 6:34 PM

2 comments
keithmv keithmv

Password Deadlock

Saturday 26 July 2008, 12:02 PM

2 comments

Vista Upgrade Blog

Microsoft's pre-modern message puts a...

Over at ZDNet.com, Ed Bott reports a first sighting of Microsoft's eagerly awaited $300 million ad campaign. Already the cause of much speculation, the consensus is that this will be... More

8 comments

A $40 CONSUMER-class router has create...

Believe it or not I don't work in IT, haven't for 7 years. Yes I work with Microsoft's Windows XP Embedded and as a result I have to know a lot about the OS, the kernal, Win API calls... More

Post a comment

Sick Puppy Redo

I generally follow a dispassionate investigative process when trying to discern what happened when a project goes bad. Although its a low priority item, it gets done simply because... More

Post a comment