README

Pattern Development Kit Lite - Version 3.0 (EJB Version)


System Requirements - hardware Top

PDK Lite was developed on an IBM ThinkPad 600X with 512Mb of RAM and a 650Mhz Pentium III processor. We recommend that you have no less than 256Mb of memory and a Pentium II processor.


System Requirements - software Top

PDK Lite is designed to run on Windows NT 4.0 with Service Pack 6A. (Please note - although it is not yet a supported configuration, the PDK Lite Enterprise Application has been seen to work equally well on Windows 2000. It is hoped that in the near future this will be an officially supported platform. In the mean time, we welcome your comments and experiences in using the PDK Lite on the Windows 2000 platform. As with all feedback, please contact us, the UK Advanced Solutions Group with your comments.


Products Required Top

The following product levels were used to develop and test PDK Lite. There may well be cases where more recent releases, or different versions would work equally well. However, the configuration outlined below is the only one supported.

Install the following products at the specified version levels before attempting to install and run PDK Lite:

Install the following products at the specified version levels before attempting to edit the source for this version of the PDK Lite:

Information Required Top

Make sure you have the following information available when running the run_all.cmd: / run_all_singleserver.cmd

How to Run PDK Lite Top

To install and configure the Pattern Development Kit Lite: You will be prompted to provide information such as your machine's hostname, and the location of the requisite products. At this stage you can also specify whether or not you want the scripts to echo a more detailed description of what is going on for each step. When asked to edit the environment.cmd file, set VERBOSE=TRUE for this additional information.  For simplicity, when configuring IBM HTTP Server, you are presented only with a subset of the http.conf configuration file, called changes.conf.  This is merged with the rest of the file afterwards and the entire http.conf file is displayed.

The last command run by the run_all.cmd launches a browser window with the URL http://localhost. From here you can navigate through the sample web site, then click the 'Topology 1' link which starts the guild_funds web application. You will be presented with a start screen showing the Guild's coat of arms, and a button labelled 'Retrieve latest balances'. Clicking this will result in the display of balances for all weather stations and the Guild of Weather Masters. From there you can then enter an amount to transfer from the Guild to one of the stations using a text entry field and a drop-down menu. Once you have submitted your transfer request, you will be told whether it has succeeded or failed. You can then return to the balance display page to review the balances.
 

Tips & Warnings Top


 

Known Issues Top



Default settings and how to change them Top

Once you have built the PDK, it is ready to run without any alteration. However, there are options you can specify to produce different effects, or to change the underlying technologies used, without having to change any source code.



Finding the source code Top


You can find the PDK Lite source code under the PDK install directory Please note that the Studio project also contains Java source code. This means that the same code can be found in more than one place TestDrive\Resources\.


Java Source

The full PDK Lite source can be found in a JAR file, under Resources\Jar, off the PDK Lite install directory, e.g.:

In addition, the same code is also included in a VisualAge for Java repository file located under the Resources\VAJ directory, e.g.:

To edit the code in VisualAge Java, import the .dat file into the VAJ workspace. A project called PDK_EJB will be added, with the packages used by the PDK Lite. To compile the classes, you will need to do the following:
 
  1. Import the PDK_EJB Project into VAJ, adding it to the WorkSpace.
  2. File -> Quick Start -> select 'Features' in the left hand pane, then 'Add Feature' in the right hand pane. Click OK.
  3. In the 'Selection Required' dialog, select the following:

  4. Click 'OK'. This will also add various other projects to your Workspace if not already there (e.g. Servlet API Classes 2.2) After the classes have been added, the 'All Problems' tab should not display any problems for the PDK_EJB project.

You can now edit, compile and export the code.


JavaServer Pages, Graphics and other resources

In line with the new J2EE application model, all the PDK resources can be found in the PDK_Lite_EJB.ear and Command_Servers.ear files, found, for example:

and

You can examine these archives and the files therein either via the Application Assembly Tool (type assembly from a command prompt) or via an archive tool such as WinZip.



Suggested reading Top

Learn more about Patterns for e-business at http://www-4.ibm.com/software/developer/web/patterns/

Read the new book Patterns for e-business: A Strategy for Reuse

Watch out for the associated Patterns Redbook coming soon for WebSphere V4:
"Self-Service Patterns using WebSphere Application Server V4.0" - SG24-6175

The following books are available from the IBM Redbooks site at http://www.redbooks.ibm.com/
 

rbooklogoPatterns for e-business: User-to-Business Patterns for Topology 1 and 2 using WebSphere Advanced Edition SG24-5864
WebSphere Studio and VisualAge for Java Servlet and JSP Programming SG24-5755
Servlet/JSP/EJB Design and Implementation Guide for IBM WebSphere Application Servers SG24-5754
Connecting e-business to the Enterprise by Example SG24-5514