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]

Building a J2EE application with Domino and WebSphere

More than the sum of their parts

David Gallardo (David@Gallardo.org), Software Consultant
David Gallardo is an independent software consultant and author specializing in software internationalization, Java Web applications and database development. He has been a professional software engineer for over 15 years and has experience with many operating systems, programming languages and network protocols. His recent experience includes leading database and internationalization development at a business-to-business e-commerce company, TradeAccess, Inc. Prior to that, he was a senior engineer in the International Product Development group at Lotus Development Corporation where he contributed to the development of a cross-platform library providing Unicode and international language support for Lotus products including Domino.

Summary:  Lotus Domino and WebSphere Application Server are both platforms for building distributed, server-based applications. They have different strengths: Application Server provides a complete J2EE platform while Domino provides the unique ability to build collaborative applications. After briefly surveying the various possible ways the two can work together using Java, the tutorial concentrates on how Domino can be used in an Application Server environment using standard multi-tier J2EE design. It pays special attention to the issue of separating presentation logic from business logic and how Domino can participate in the Model-View-Controller (MVC) design using JavaServer Pages (JSP), Java servlets and Enterprise JavaBeans (EJB).

Date:  24 Jul 2002
Level:  Introductory PDF:  A4 and Letter (104KB | 27 pages)Get Adobe® Reader®

Activity:  13701 views
Comments:  

Introduction

Should I take this tutorial?

This tutorial is for developers who want to use Lotus Domino's collaborative features in the context of a standard Java 2 Enterprise Edition (J2EE) environment. It covers essential setup and configuration issues but concentrates on how to design and code with the Domino classes in JavaServer Pages (JSPs), servlets, and Enterprise JavaBeans (EJBs).

It is recommended that readers be familiar with the following technologies:

  • JSP pages and EJBs
  • Domino, especially programming with the Domino classes

See Tutorial resources for more information on these topics.


What is this tutorial about?

Lotus Domino and WebSphere Application Server are both platforms for building distributed, server-based applications. They have different strengths: Application Server provides a complete J2EE platform while Domino provides the unique ability to build collaborative applications. The tutorial begins by briefly surveying the various possible ways the two can work together using Java. It then concentrates on how Domino can be used in an Application Server environment using standard multi-tier J2EE design. It pays special attention to the issue of separating presentation logic from business logic and how Domino can participate in the Model-View-Controller (MVC) design pattern using JSP pages, Java servlets and EJBs.

The tutorial uses a sample application that displays the contents of a Lotus Domino discussion database to demonstrate how Domino can work with WebSphere Application Server and J2EE. This will take us from the nuts and bolts of configuring Domino and Application Server to the more abstract realm of designing and building a J2EE application using the MVC methodology.


What the sample application does not cover

The sample application is intended to demonstrate simply and clearly how Domino can fit into the J2EE architecture. It is not intended to be a complete demonstration of J2EE. Specifically, key features of Application Server that make it a compelling platform for distributed application development -- especially EJB and relational database connectivity -- are not demonstrated because these topics would require coverage well beyond the scope of this tutorial.

The sample application might be, for example, part of an online music store where features such as the catalog and transaction processing are built using standard J2EE components such as JSP pages, servlets, EJBs, and a relational database. Although the Domino part can easily be implemented using Domino's Web publishing features, calling the Domino Java classes from a J2EE component, such as a servlet as shown here, provides greater flexibility and control over the application's appearance and behavior, and makes it easier to achieve a seamless integration.

For an example of a larger application, see the IBM Redbook, Domino and WebSphere Together Second Edition , available online (see Tutorial resources). This book provides thorough coverage of integrating Domino, Application Server and DB2 Universal Database using servlets, JSP pages and EJB technology.


Tools and configuration recommendations

In order to follow along with this tutorial, you'll need the following applications installed. Free trial versions are available for all three:

The tutorial assumes that the Application Developer configuration of WebSphere Studio, WebSphere Application Server, Advanced Edition and Lotus Domino have been installed with default options, preferably, but not necessarily, on the same computer. The instructions for building the sample application have been tested with Application Developer V4.0.3, Application Server V4.0.1 and V3.5, and Domino 6.0. The sample application was built, tested, and deployed on Windows, but will work equally well on Linux.

You'll also need to download DominoWASsrc.zip, the source code for the sample application.

A Pentium® class PC running Windows NT/2000 with a clock speed of at least 500 MHz and at least 256 MB of memory is recommended. The examples here ran well on a 650 MHz AMD Athlon™-based system with 384 MB of memory. Hard disk space requirements for both Application Server and Domino are approximately 1 GB after installation; downloading from the Web and installing from the same hard disk will temporarily require approximately 1 GB of additional space.

1 of 10 | Next

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=Lotus
ArticleID=141525
TutorialTitle=Building a J2EE application with Domino and WebSphere
publish-date=07242002
author1-email=David@Gallardo.org
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.

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).

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.