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]

Configure IBM Informix Web DataBlade Module 4.13 with Apache (2) Web server on UNIX or Linux

Set up a basic Web application using the Web DataBlade Module Administration Tool

Veronica Gomes (vgomes@us.ibm.com), Advisory IT Specialist, Systems Documentation, Inc. (SDI)
Veronica Gomes
Veronica Gomes is an IT Specialist in IBM Data Servers for IBM ChannelWorks, working on a team that is focused on providing technical enablement to IBM business partners using IBM Data Servers embedded in their solutions. Veronica has 10 years of experience in Informix databases and was a member of the IBM Technical Support team for Information Management products (Informix and DB2) for several years.

Summary:  The IBM® Informix® Web DataBlade® module is a collection of tools and functions with components installed in both the Informix database server and the third-party Web server to ease development of intelligent, interactive, and dynamic Web-enabled Informix database applications. In this tutorial, walk through the steps to set up an Apache (2) compatible Web server, such as IBM HTTP Server 2.0.47, to work with the Informix Web DataBlade Module version 4.13.UC3 on UNIX® or Linux® platforms.

Date:  28 Aug 2008
Level:  Intermediate PDF:  A4 and Letter (549 KB | 34 pages)Get Adobe® Reader®

Activity:  6244 views
Comments:  

Before you start

About this tutorial

This tutorial starts with a brief refresher on the basics of the architecture and components of the Informix Web DataBlade Module to show you how they all work together in a Web-enabled database solution. Then, the core of the tutorial explains the steps you take to install and configure the Apache (2) Web server on Linux or UNIX to get it to work with the Informix Web DataBlade.

In this tutorial, you will

  • Get an introduction to the basic elements within the architecture of an Informix Web DataBlade application on UNIX or Linux
  • Install the Informix Web DataBlade product in both the database server and the Web server machines
  • Configure a database in Informix to store and serve dynamic Web pages
  • Run the Websetup utility in both the database and the Web server to configure the Web DataBlade in them
  • Configure the Web server Apache (2) to use the Informix Web DataBlade driver for a specific virtual directory that corresponds to the Web DataBlade Admin Tool

The Web DataBlade Module Admin Tool is one of the few pre-built dynamic Web applications, developed in Web DataBlade, that is used to configure all the Web applications stored in a given database. You choose to install this tool when you run the Web DataBlade's setup utility (Websetup) against that database where you previously registered the Informix Web DataBlade.


Introducing the Informix Web DataBlade Module

The IBM Informix Web DataBlade module is a collection of tools and functions with components installed in both the Informix database server and the 3rd-party Web server that help to ease development of intelligent, interactive, and dynamic Web-enabled Informix database applications.

Using the Informix Web DataBlade, you can build Web pages using your preferred Web/HTML development tools and embed the specific code for dynamic database transaction and query processing. You write these dynamic pieces in what are called Web DataBlade tags — similar in syntax to the normal HTML tags.

When a Web client requests a page, Informix retrieves the Web page from where it is stored in a database and resolves (or ‘explodes’) these pieces of dynamic database code in Web DataBlade tags at runtime, replacing those tags by their results formatted in the form of HTML code, and leaving the rest of non-Web DataBlade code of the page intact. Therefore, at the end, Informix returns the Web server a pure HTML page where the database-related pieces were resolved on the fly, while the non-database pieces were left untouched by Informix. The Web server can understand the resulting Web page it receives back from Informix. The Web server then returns this page — actually served by Informix — back to the Web client who made the original request.

You can have queries (SELECT statements), but also other types of processing (such as INSERT, DELETE, UPDATE, execute procedure/function) within the Web DataBlade tags. In addition to these SQL tags, this DataBlade provides you other tags and functions to dynamically manage variables, session-persistence, loops, conditions, application processing flows, and errors.

The original unresolved Web page code that combines non-database or normal HTML tags (non-Web DataBlade tags) with dynamic database-processing tags (Web DataBlade tags) is called an AppPage and is stored as an HTML data type object in an Informix table inside a database where you have registered the Informix Web DataBlade using the Blade Manager (bladiemgr) tool. When you register the Web DataBlade into a database, it creates the HTML data type (which can be seen as a CLOB or LVARCHAR) and all the functions to manage it inside that database.

Although the AppPages are stored in a database with a registered Web DataBlade module, these pages can contain remote or distributed SQL and transaction processing against other transactional databases that do not have the Web DataBlade Module registered on them.

Every single AppPage is processed within a transaction: Either all the database-related code within that page is successfully processed, or it is all rolled back. This ensures that you will not have different levels of success and failure for pieces of a single page request. The success of the page is an atomic matter for the Informix Web DataBlade. In addition, you have the ability to determine how to handle a failed database operation in your Web application — for example, sending a specific message back to the user or taking an action. One consequence of this fact is that Web DataBlade works with databases that support transactions (logging mode enabled).

Figure 1 illustrates how an Informix Web DataBlade dynamic web page (AppPage) looks like at every resolution stage. It first shows how a typical Informix Web DataBlade AppPage looks before it's been resolved by a Web client request with HTML and Informix AppPage tags. Then it shows the page once Informix returns it as resolved with only HTML tags, and, finally, the last box shows how the same page would be displayed by the Web browser.


Figure 1. Resolution stages of an Informix DataBlade dynamic Web page
How an Informix Web DataBlade dynamic web page (AppPage) looks like at every resolution stage

1 of 7 | 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=Information Management, Open source, Web development
ArticleID=333467
TutorialTitle=Configure IBM Informix Web DataBlade Module 4.13 with Apache (2) Web server on UNIX or Linux
publish-date=08282008
author1-email=vgomes@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.

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.