Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is...

56
Rocket U2 Web Development Environment Getting Started Version 5.1.1 January 2014 WDE-511-ALL-IM-01

Transcript of Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is...

Page 1: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Rocket U2 Web DevelopmentEnvironment

Getting Started

Version 5.1.1

January 2014WDE-511-ALL-IM-01

Page 2: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

2

NoticesEdition

Publication date: January 2014Book number: WDE-511-ALL-IM-01Product version: Version 5.1.1

Copyright© Rocket Software, Inc. or its affiliates 1996-2014. All Rights Reserved.

Trademarks

Rocket is a registered trademark of Rocket Software, Inc. For a list of Rocket registered trademarks goto: www.rocketsoftware.com/about/legal . All other products or services mentioned in this documentmay be covered by the trademarks, service marks, or product names of their respective owners.

Examples

This information might contain examples of data and reports. The examples include the names ofindividuals, companies, brands, and products. All of these names are fictitious and any similarity tothe names and addresses used by an actual business enterprise is entirely coincidental.

License agreement

This software and the associated documentation are proprietary and confidential to Rocket Software,Inc. or its affiliates, are furnished under license, and may be used and copied only in accordance withthe terms of such license.

Note: This product may contain encryption technology. Many countries prohibit or restrict theuse, import, or export of encryption technologies, and current use, import, and export regulationsshould be followed when exporting this product.

Contact information

Website: www.rocketsoftware.com

Rocket Software, Global Headquarters77 4th AvenueWaltham, MA 02451–1468USATel: +1 781 577 4321Fax: +1 617 630 7100

Page 3: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

3

Contacting Global Technical SupportIf you have current support and maintenance agreements with Rocket Software, you can access theRocket Customer Portal and report a problem, download an update, or find answers to in the U2Knowledgebase. The Rocket Customer Portal is the primary method of obtaining support.

To log in to the Rocket Customer Portal or obtain a Rocket Customer Portal account, go towww.rocketsoftware.com/support

Alternatively, you can contact Global Technical Support by email or telephone:

Email: [email protected]:

North America +1 800 729 3553United Kingdom/France +44 (0) 800 773 771 or +44 (0) 20 8867 3691Europe/Africa +44 (0) 20 8867 3692Australia +1 800 707 703 or +61 (0) 29412 5450New Zealand +0800 505 515

Page 4: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

4

Contents

Notices................................................................................................................................................................................... 2

Contacting Global Technical Support................................................................................................................................. 3

Chapter 1: Rocket U2 Web Development Environment overview..................................................................................... 6Introduction...............................................................................................................................................................6Web DE components................................................................................................................................................ 6Web DE architecture.................................................................................................................................................6

Web DE installation with Java Scheduler................................................................................................... 7Web DE installation with connection pooling............................................................................................ 7RedPages COM Wrapper.............................................................................................................................. 8

Chapter 2: Installation overview..........................................................................................................................................9Installing Web DE on Windows................................................................................................................................ 9

Preinstallation...............................................................................................................................................9System requirements (Windows).....................................................................................................9Software requirements (Windows)................................................................................................10Disk space requirements (Windows)............................................................................................. 12(Optional) Uninstalling previous versions of Web DE.................................................................. 12

Running multiple versions of Web DE.......................................................................................................13Reusing RBOs from previous versions.......................................................................................... 13

Installing Web DE (Windows)..................................................................................................................... 13(Optional) Configuring the RedPages COM Wrapper................................................................... 15(Optional) Configuring the RedPages COM Wrapper files............................................................15

Installing Web DE on UNIX..................................................................................................................................... 17Preinstallation.............................................................................................................................................17

System requirements (UNIX)..........................................................................................................17Software requirements (UNIX).......................................................................................................17Disk space requirements (UNIX).................................................................................................... 18(Optional) Uninstalling previous versions of Web DE.................................................................. 18

Preparing to install.....................................................................................................................................19Copying source files from the product CD image.........................................................................19Copying source files from another computer...............................................................................19

Installing Web DE (UNIX)............................................................................................................................ 20(Optional) Upgrading U2 accounts........................................................................................................................20

Upgrading existing U2 accounts to 5.x..................................................................................................... 20

Chapter 3: Deploying the RedBack Object Server to a UNIX or Windows computer......................................................22Setting up a UNIX computer..................................................................................................................................22

Removing previous versions of the RedBack Object Server (UNIX)........................................................ 22Setting up a Windows computer........................................................................................................................... 22

Removing previous versions of the RedBack Object Server (Windows)..................................................22Deploying the RedBack Object Server to a UNIX or Windows computer............................................................23

Chapter 4: Deploying the Java Scheduler to a UNIX or Windows computer.................................................................. 27Setting up a UNIX computer..................................................................................................................................27

Removing previous versions of the Java Scheduler (UNIX).....................................................................27Setting up a Windows computer........................................................................................................................... 27

Removing previous versions of the Java Scheduler (Windows).............................................................. 27Deploying the Java Scheduler to a UNIX or Windows computer........................................................................ 28

Chapter 5: Copying RedBeans components to a UNIX computer................................................................................... 32Setting up the web server computer.................................................................................................................... 32

Removing previous versions of the RedBeans (UNIX)..............................................................................32Copying RedBeans components............................................................................................................................32

Page 5: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Contents

5

Chapter 6: Installing the stand-alone JSP RBOScope testing tool..................................................................................33JSP RBOScope testing tool overview....................................................................................................................33Installing the JSP RBOScope testing tool.............................................................................................................33

Configuring the encoding of the JSP RBOScope testing tool..................................................................35

Chapter 7: Authorizing Web DE......................................................................................................................................... 36Authorizing Web DE................................................................................................................................................ 36Clearing violation codes.........................................................................................................................................37

Chapter 8: Configuring and running the Java Scheduler................................................................................................ 38Managing the Java Scheduler on Windows..........................................................................................................38

Configuring the Java Scheduler (Windows)..............................................................................................38Modifying default global settings (Windows)............................................................................... 38Modifying account settings (Windows)......................................................................................... 40Inserting an account in the Java Scheduler configuration file (Windows)..................................42

Running the Java Scheduler on Windows................................................................................................ 42Viewing the Java Scheduler log.................................................................................................... 43

Monitoring performance on Windows.......................................................................................................44Registering or unregistering the Java Scheduler as a Windows service................................................. 45

Managing the Java Scheduler on UNIX.................................................................................................................46Configuring the Java Scheduler (UNIX).....................................................................................................46

Modifying environment variables (UNIX)...................................................................................... 47Modifying account settings (UNIX)................................................................................................ 47Adding an account to the Java Scheduler configuration file (UNIX)........................................... 48

Modifying environment variables on UNIX............................................................................................... 49Running the Java Scheduler on UNIX....................................................................................................... 49Monitoring performance on UNIX..............................................................................................................50

Chapter 9: Configuring the RedBack gateway..................................................................................................................52RedBack gateway overview................................................................................................................................... 52Configuring the RedBack gateway........................................................................................................................ 52

Modifying default global settings.............................................................................................................. 52Inserting an account in the gateway configuration file........................................................................... 53Modifying account settings........................................................................................................................ 54

Page 6: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

6

Chapter 1: Rocket U2 Web DevelopmentEnvironment overview

Rocket U2 Web Development Environment (Web DE) is an application development toolkit for buildinginteractive client/server applications for deployment on the World Wide Web or on a corporateintranet.

IntroductionThis document provides a complete step-by-step guide to installing and setting up U2 WebDevelopment Environment. It contains steps for installing components of Web DE on Windows, UNIX,deploying the RedBack Object Server component to a UNIX or Windows computer, and copyingRedBeans components to a UNIX computer. This document also provides instructions for installingtwo optional features: a RedPages COM Wrapper and a stand-alone JSP RBOScope testing tool.Additional topics include upgrading older U2 accounts to the Web DE 5.x architecture, and licensingand authorizing the product.

Web DE componentsWeb DE consists of the RedBack Object Server, Java Scheduler, RedBeans and RedPages.NET, andWeb Designer.

The following table describes the role of each Web DE component.

Table 1: Web DE components

Component Description

RedBack ObjectServer

The RedBack Object Server manages access to RedBack applications andimplements dynamic runtime interfaces to server-side application resources.

The RedBack Object Server also maintains the repository that contains all thedefinitions and code that define an application.

Java Scheduler The Java Scheduler manages data transfer between the RedBack ObjectServer and the web server, handling requests from RedBeans andRedPages.NET. It also performs the job of load balancing, processing thequeue of connection requests by allocating U2 licenses as webshares.

RedBeans andRedPages.NET

The RedBeans and RedPages.NET components are the Java and .NETapplication programming interfaces (APIs) that enable you to connect yourapplication to RedBack Objects (RBOs). These components are the interfacebetween the web server and the RedBack Object Server. The role of thesecomponents is to establish and maintain connection pool connections orwebshare connections between the web server and the RedBack ObjectServer.

Web Designer This suite of designer tools runs in an Eclipse development environmentand provides an interface for designing RBOs. For more information, seeDeveloping RBOs with U2 Web Designer.

Web DE architectureWeb DE supports two different methods for managing web requests and responses:

Page 7: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Web DE installation with Java Scheduler

7

▪ Web DE installation with Java Scheduler, on page 7– Uses a webshare model similar to thatimplemented in Web DE 4.x

▪ Web DE installation with connection pooling, on page 7– Uses the connection poolingtechnology of UniData 7.x and UniVerse 10.3 and later.

Web DE installation with Java Scheduler

The following figure illustrates Web DE with the Java Scheduler.

Figure 1: Web DE with the Java Scheduler

Web DE installation with connection pooling

The following figure illustrates Web DE with connection pooling.

Page 8: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 1: Rocket U2 Web Development Environment overview

8

Figure 2: Web DE with connection pooling

Web DE offers the alternative of using the connection pooling feature of UniData or UniVerse toperform load balancing, supported in UO.NET and UOJ.

RedPages COM Wrapper

Web DE provides an optional RedPages Component Object Model (COM) Wrapper for compatibilitywith ASP and other COM-based applications. The wrapper connects classic ASP and other COM-basedapplications to the Web DE 5.x architecture, which relies on the Microsoft .NET Framework.

Page 9: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

9

Chapter 2: Installation overviewThe following sections provide information and steps to help you install Web DE.

Web DE is installable on both Windows and UNIX. For Windows information, see Installing Web DE onWindows, on page 9. For UNIX information, see Installing Web DE on UNIX, on page 17.

Installing Web DE on WindowsThe following sections provide instructions for setting up your computer for Web DE and installingcomponents of the product on Windows.

Preinstallation

Before installing, you must verify your system meets the requirements described in the followingsections. Additionally, you can optionally uninstall older versions of Web DE.

System requirements (Windows)

Verify the system requirements to support Web DE. Components of Web DE can be installed on one orseveral computers.

The following figure illustrates how components of Web DE can be installed on one or severalcomputers.

Figure 3: Web DE installation components on one or more computers

*Web Designer and RedPages.NET are Windows-only components.

Page 10: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 2: Installation overview

10

In some cases, you can install server components on the same computer. For example, you can installthe Java Scheduler on the same computer that runs the web server or the RedBack Object Server.However, software requirements are listed for each server component because you might installcomponents on separate computers.

Software requirements (Windows)The following sections describe the software requirements for the components of Web DE.

Web server computer requirements

The following table lists the software requirements for the web server computer.

Table 2: Software required on web server computer

Component Supported versions

Operating system Any of the following versions of Windows:

▪ Windows Server 2003

R2 Service Pack 1 or later▪ Windows Server 2008

R2 Service Pack 1 or later▪ Windows Server 2012

Standard edition (64-bit)▪ Windows XP

Professional edition, Service Pack 3 or later▪ Windows 7

Professional, Enterprise, or Ultimate edition, Service Pack 1 or later▪ Windows 8

Enterprise edition (64-bit)

Page 11: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Software requirements (Windows)

11

Component Supported versions

Web serversoftware

For .NET applications (RedPages.NET):

▪ Optional: Microsoft Internet Information Services (IIS) 6.x or later

If you are using IIS 7, click Control Panel > Programs and Features >Turn Windows features on or off. Click to expand Internet InformationServices > Web Management Tools > IIS 6 Management compatibility,and select the IIS Metabase and IIS 6 configuration compatibility checkbox.

▪ Common language run time and class libraries:

Microsoft .NET Framework 3.5 or later

Microsoft .NET Framework 4.0 or later is required if you use the RedPagesCOM Wrapper

▪ Development tool:

Microsoft Visual Studio 2005 or later

For Java applications (RedBeans):

One of the following:

▪ Java Development Kit (JDK):

JDK 6 or later▪ Java Runtime Environment (JRE):

JRE 6 or later

Java Scheduler computer requirements

The following table lists the Windows software requirements for the Java Scheduler computer.

Table 3: Software required on the Java Scheduler computer (Windows)

Component Supported versions

Operating system Any of the following versions of Windows:

▪ Windows Server 2003

R2 Service Pack 1 or later▪ Windows Server 2008

R2 Service Pack 1 or later▪ Windows Server 2012

Standard edition (64-bit)▪ Windows XP

Professional edition, Service Pack 3 or later▪ Windows 7

Professional, Enterprise, or Ultimate edition, Service Pack 1 or later▪ Windows 8

Enterprise edition (64-bit)Runtimeenvironment

▪ JRE 6 or later

Page 12: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 2: Installation overview

12

RedBack Object Server computer requirements

The following table lists the Windows software requirements for the RedBack Object Server computer.

Table 4: Software required on the RedBack Object Server computer (Windows)

Component Supported versions

Operating system Any of the following versions of Windows:

▪ Windows Server 2003

R2 Service Pack 1 or later▪ Windows Server 2008

R2 Service Pack 1 or later▪ Windows Server 2012

Standard edition (64-bit)▪ Windows XP

Professional edition, Service Pack 3 or later▪ Windows 7

Professional, Enterprise, or Ultimate edition, Service Pack 1 or later▪ Windows 8

Enterprise edition (64-bit)Database server Either of the following database servers on Windows:

▪ UniData 7.2 or later; however, 7.3.5 or later is recommended.▪ UniVerse 10.3 or later

Runtimeenvironment

If you run the Java Scheduler to manage client/server applications on thiscomputer:

▪ JRE 6 or later

Disk space requirements (Windows)The following table lists the Windows free disk space requirements for the components of Web DE.

Table 5: Disk space requirements for components (Windows)

Component Amount of free disk space

Java Scheduler 1 MBRedBack ObjectServer

20 MB

RedBeans 120 MBRedPages.NET 500 KBU2 WebDevelopmentEnvironment

300 MB

(Optional) Uninstalling previous versions of Web DE

If you installed a previous version or deployed components of Web DE to the target Windowscomputer, and want to remove the components to prepare for a clean installation, do the following:

Page 13: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Running multiple versions of Web DE

13

Note: These steps are not required unless you want only one version of Web DE on your computerat a time.

1. On the target Windows computer, click Start > Control Panel > Programs and Features.2. In the list of installed programs, right-click U2 Web Development Environment and select

Uninstall.

Running multiple versions of Web DE

You do not need to uninstall previous versions of Web DE before installing Web DE 5.x. If you have alimited number of computers available, it is possible to run previous and current versions of Web DEon the same computer. This includes 5.1.1 running on the same computer where 5.1.0 is installed.

The U2WDE environment variable contains the path to the last product installed. If you want to usea previously installed product, you must manually change the path to that version in the U2WDEvariable. Each version must be installed to a different location and must be treated as a separateproduct.

You can upgrade existing U2 accounts used in your applications to the Web DE 5.x architecture. Formore information, see Upgrading existing U2 accounts to 5.x, on page 20.

If you have reason to run legacy Web DE architecture for some U2 accounts while upgrading others tothe 5.x architecture, the accounts can coexist without any problems. However, note that any specificaccount can run only with the pre-5.x architecture or with the 5.x architecture—not both.

Reusing RBOs from previous versions

RBOs created in previous versions of Web DE can be reused in 5.x.

Prerequisite▪ Creating a Module, in Chapter 3 of Administering U2 Web DE

After you have created a 5.x account and module (such as EXMOD in rbexamples), perform thefollowing steps:

Procedure

1. Browse to the equivalent module at the operating system level in your old account.2. Browse to the file xxCLASSES (where xx represents the module ID, such as EXMODCLASSES) and

copy this file to the 5.x account.

New connections made to the 5.x account in the Web Designer now show the RBOs from the oldaccount in the appropriate module under U2 Web DE Elements.

Installing Web DE (Windows)

After you have verified that your system meets the requirements to install Web DE, you can proceedwith these installation steps.

Page 14: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 2: Installation overview

14

Prerequisite▪ Review the requirements, described in Software requirements (Windows), on page 10.▪ (Optional) Uninstalling previous versions of Web DE, on page 12

Procedure

1. Start Windows on the computer on which you want to install components of Web DE.2. Turn off any virus protection software as it can interfere with the installation.3. Close all Windows programs.4. Start the World Wide Web Publishing Service on the computer before you run the AutoRun.exe

file to install Web DE.

a. Open the Services control panel by clicking Start > Control Panel > Administrative Tools >Services.

b. In the Services control panel, right-click World Wide Web Publishing Service and selectStart. A status of “Started” indicates that Windows started the service successfully.

5. From the top level of the product setup image, run the AutoRun.exe file.On Windows 7, Windows 8, Windows Server 2008, or Windows Server 2012, you must right-clickAutoRun.exe and select Run as administrator.

6. From the U2 Web Development Environment Setup menu, select Install U2 Web DevelopmentEnvironment.

7. Follow the steps in the installation wizard.

a. When the Select Features window is displayed, scroll through the list of availablecomponent features. Select the check box of each component to install. The most commonlyused components are selected by default. If you do not want to install a component, clearthe check box.The following table describes each component feature.

Table 6: Web DE component features

Component Description

U2 WebDesigner

An Eclipse-based visual design tool for designing and building RBOs forweb access to U2 accounts.

RedPages.NET A set of .NET classes to deploy from a Windows-based web server toprovide access to U2 accounts using RBOs. The RedPages COM Wrapperfiles are included in the RedPages.NET component. For additional stepsin configuring the RedPages COM Wrapper, see (Optional) Configuringthe RedPages COM Wrapper files, on page 15.

RedBeans A set of Java classes to deploy from a Java-based web server or call froma Java application to provide access to U2 accounts using RBOs.

Java Scheduler A Java-based scheduler that processes the queue of connections using awebshare licensing scheme.

RBO DataSources

This component enables RBOs to participate in ASP.NET data binding.RBO Data Sources integrates directly with Visual Studio to enhanceusability in working with RBOs.

Sample WebPages

Contains sample JSP and ASP.NET-based web pages showing examplecode connecting to RBOs.

▪ Java Server Pages Examples – Select this check box if you wantsample JSP-based web pages.

▪ Active Server Pages Examples – Select this check box if you wantsample ASP.NET-based web pages.

Page 15: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

(Optional) Configuring the RedPages COM Wrapper

15

Component Description

RedBack ObjectServer forUniData

Contains the RedBack Object Server account rbdefn, providing access tothe UniData database server.

UniDataExample

The rbexamples account for use with the RedBack Object Server forUniData.

RedBack ObjectServer forUniVerse

Contains the RedBack Object Server account rbdefn, providing access tothe UniVerse database server.

UniVerseExamples

The rbexamples account for the RedBack Object Server for UniVerse.

InternationalLicenses

The internationalized license agreement files for Web DE.

b. If a previous version of Web DE is on your computer, the wizard alerts you to change theinstallation path so the previous version does not corrupt the current installation. By default,the suggested path is U2WDEnnn, where nnn is the current version number being installed.Accept the current path or change it.

c. When the program finishes copying files, the message “Installation is finished” indicates thatthe installation was successful.Click OK.

(Optional) Configuring the RedPages COM Wrapper

Web DE offers the optional RedPages COM Wrapper for compatibility with classic ASP and other COM-based applications.

The RedPages COM Wrapper connects classic ASP and other COM-based applications to the Web DE5.x architecture, which relies on the Microsoft .NET Framework.

This feature is designed for application developers who have written ASP or other COM-basedapplications with the RedPages 3.x or 4.x API and do not have the option of moving the existing codeinto ASP.NET. The wrapper allows you to upgrade Web DE server components to 5.x and employfeatures of the new architecture without modifying the application front end.

To get set up, you need to install the RedPages COM Wrapper on the web server computer on whichyou run your classic ASP or other COM-based applications. The RedPages COM Wrapper librariesreplace the registered classes for classic RedPages on the web server. With the RedPages COMWrapper libraries installed, COM-based applications run against the Web DE 5.x architecture with nomodifications.

Note: The ADO calling interface from classic RedPages has not been implemented in the RedPagesCOM Wrapper. Applications that use the ADO calling interface need some rework to convert themto the COM interface used with the RedPages COM Wrapper.

(Optional) Configuring the RedPages COM Wrapper filesComplete this optional procedure to configure the RedPages COM Wrapper on the web servercomputer on which you run classic ASP or other COM-based applications.

Prerequisite

Remember: You must install Microsoft .NET Framework 4.0 or later on the web server computer.

Page 16: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 2: Installation overview

16

Configure the application pool of your website for Microsoft .NET Framework 4.0 or later. If theapplication pool of your website is enabled for 32-bit applications, take one of the following actions:

▪ If you are using IIS, navigate to IIS Manager > Application Pools > Advanced Settings, and changethe Enable 32-bit Applications parameter to False.

or▪ Manually register the RedPages COM Wrapper in the 32-bit version of .NET Framework 4.0 or later,

by doing the following steps:

1. Open the command prompt.2. Change directories as follows:

cd %U2WDE%/rgw3. Run the following command:

%windir%\Microsoft.NET\Framework\v4.0.30319\ RegAsm.exe /tlb /codebase RedPagesCCW.dll

4. You must have existing virtual directories with classic ASP or other COM-based applications.

Procedure

1. On the web server computer, stop the World Wide Web Publishing Service as follows:

a. Open the Services control panel by clicking Start > Control Panel > Administrative Tools >Services.

b. In the Services control panel, right-click World Wide Web Publishing Service and selectStop. The Service Control window provides a status as Windows stops the service.

2. Navigate to the Web DE installation directory. The default installation directory is:C:\U2\U2WDEnnn, where nnn is the version number you installed.

In the installation directory, open the rgw directory, which contains all of the supporting files forthe RedPages COM Wrapper:

▪ RedPagesCCW.dll▪ RedPagesNET.dll▪ UODOTNET.dll▪ redpagesCCW_setup.bat

To make use of RedPages.NET in your application, add the RedPagesNET.dll andUODOTNET.dll as references in your preferred .NET development environment.

3. Open the command prompt on the web server computer by using the Run as administratoroption.

4. At the command line, navigate to the rgw directory in the Web DE installation directory and runthe redpagesCCW_setup.bat file.Note that the redpagesCCW_setup.bat file has both 64- and 32-bit versions. The 64-bit .batfile checks to see if the operating system is 32-bit and if so, it returns an error. The 32-bit .bat fileregisters the COM Wrapper in 32-bit.A Registry Editor window is displayed, alerting you that an entry will be added to the Registry.Click Yes to continue.A second Registry Editor window is displayed, confirming registration of UO.NET components.Click OK to continue.The output prompts you to view full details of the registration process in the batch file logredpagesCCW_setup.txt:

C:\U2\U2WDEnnn\rgw>RedPagesCCW_setup.bat Welcome to RedPages COM Wrapper setup... Registering RedPages COM Wrapper components... Checking .NET framework version...

Page 17: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Installing Web DE on UNIX

17

32-bit Microsoft.NET framework used. Calling regasm... Registering UO.NET components... Registration of RedPages COM Wrapper components complete! Please view redpagesCCW_setup.txt for full registration details.

5. On the web server computer, start the World Wide Web Publishing Service.6. Upgrade any existing U2 accounts from version 3.x or 4.x to Web DE 5.x, if necessary. For steps,

see (Optional) Upgrading U2 accounts, on page 20.7. Open a web browser and point it to your ASP application. Confirm that you can read and write

data in your application account.

Installing Web DE on UNIXThe following sections provide instructions for setting up your computer for Web DE and installingcomponents of the product on UNIX.

Alternatively, you can use the Web Designer to deploy the RedBack Object Server to the UNIX machine.For more information, see Deploying the RedBack Object Server to a UNIX or Windows computer, onpage 22.

Preinstallation

Before installing, you must verify your system meets the requirements described in the followingsections. Additionally, you can optionally uninstall older versions of Web DE.

System requirements (UNIX)

Verify the system requirements to support Web DE. Components of Web DE can be installed on one orseveral computers.

For more information on how Web DE can be used across multiple computers, see Figure 3: Web DEinstallation components on one or more computers, on page 9.

In some cases, you can install server components on the same computer. For example, you can installthe Java Scheduler on the same computer that runs the web server or the RedBack Object Server.However, software requirements are listed for each server component because you might installcomponents on separate computers.

Software requirements (UNIX)The following sections describe the software requirements for the components of Web DE.

Web server computer requirements

The following table lists the UNIX software requirements for the web server computer to supportRedBeans.

Table 7: Software required on web server computer (UNIX)

Component Supported versions

Operating system IBM AIX, Oracle Solaris, HP-UX, or RedHat Linux

Page 18: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 2: Installation overview

18

Component Supported versions

Web server software Java-based web server software such as IBM WebSphere Application Serveror Tomcat.

Otherwise, if you only want to run client/server applications on thiscomputer, one of the following:

▪ JDK 6 or later▪ JRE 6 or later

RedBack Object Server computer requirements

The following table lists the UNIX software requirements for the RedBack Object Server computer.

Table 8: Software required on the RedBack Object Server computer (UNIX)

Component Supported versions

Operating system IBM AIX, Oracle Solaris, HP-UX, or RedHat LinuxDatabase server Either of the following database servers on UNIX:

▪ UniData 7.2 or later; however, 7.3.5 or later is recommended▪ UniVerse 10.3 or later

Runtime environment If you run the Java Scheduler to manage client/server applications on thiscomputer:JRE 6 or later

Java Scheduler computer requirements

The following table lists the UNIX software requirements for the Java Scheduler computer.

Table 9: Software required on the Java Scheduler computer (UNIX)

Component Supported versions

Operating system IBM AIX, Oracle Solaris, HP-UX, or RedHat LinuxRuntime environment JRE 6 or later

Disk space requirements (UNIX)The following table lists the UNIX free disk space requirements for the components of Web DE.

Table 10: Disk space requirements for components (UNIX)

Component Amount of free disk space

Java Scheduler 1 MBRedBack ObjectServer

12 MB

RedBeans 120 KB

(Optional) Uninstalling previous versions of Web DE

If you installed a previous version or deployed components of Web DE to the target UNIX computer,and want to remove the components to prepare for a clean installation, do the following:

Page 19: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Preparing to install

19

Note: These steps are not required unless you want only one version of Web DE on your computerat a time.

1. On the UNIX machine where Web DE is installed, open a command window and change directoryto the Web DE path.

2. Use the remove program command (for example, rm) to remove the Web DE files.

Preparing to install

You must perform some preliminary setup work before installing Web DE 5.x.

You need two source files to install Web DE on UNIX: an install script and a .tar file. These files arelocated on the Web DE product CD image in the \server\unix\udt or \server\unix\uvdirectory.

The installation script, rbappsvr, is common to all operating systems. It allows you to install allcomponents of Web DE quickly using the .tar file. The .tar file contains all the example accounts,directories, and files for Web DE. The .tar file uses the following naming convention for the .tar file:

rb511_udt73_3094.tar, where:

▪ 511 is the version number.▪ udt73 is the U2 account used (in this case, UniData; UniVerse uses “uv”) and the minimum version

number required, in this case 7.3, indicating that release 7.3 and later are supported.▪ 3094 is the build number.

These files must be copied from the product CD image or copied from another computer.

Copying source files from the product CD image

If you are installing from the product CD image, copy the source files from the product CD image to thetemp directory.

1. Change to the directory containing the required source files.2. Copy the two required files to your temp directory, for example,

$ cp rbappsvr /tmp/ $ cp rb511_udt73_3094.tar /tmp/

Copying source files from another computer

Alternatively, you can copy the source files from a Windows computer with a CD-ROM drive throughFTP network transfer on a TCP/IP network.

1. Load the CD on the Windows computer.2. On the Windows computer, open an FTP session to the UNIX host.3. Change the local directory to the path of the required source files on the CD.4. Change the directory to your temp directory.5. In binary transfer mode, transfer the two source files to the temp directory.

Page 20: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 2: Installation overview

20

Installing Web DE (UNIX)

After you have verified that your system meets the requirements to install Web DE, you can proceedwith these installation steps.

Prerequisite▪ Review the requirements, described in Software requirements (UNIX), on page 17.▪ (Optional) Uninstalling previous versions of Web DE, on page 18.

Procedure

1. Start UNIX on the computer on which you want to install components of Web DE.2. Change to the temp directory, and enter rbappsvr.3. Follow the script’s prompts for input for the license details, installation directory, U2 data server

installation directory, and time zone. Typically, the default options are acceptable.

a. For license details, locate the license details provided with the product and enter thenumeric portion of your webshare serial number as the installation serial number for WebDE.

b. For the installation directory, enter the directory to which you want to install all of the WebDE files.

c. Accept or change the installation path of the UniData or UniVerse database. For UniData,the script detects UDTHOME. For UniVerse, the script detects UVHOME. If the environmentvariable is not set, the installation process reads the /.uvhome file and extracts the locationof the UniVerse installation.

d. Accept or change the time zone. The script detects the time zone from the TZ environmentvariable.

4. Accept the prompt to install from the .tar file.The .tar file contains all the example accounts, directories, and files for Web DE, such as therbdefn, rbexamples, and rbodemo directories, and the Java Scheduler.

(Optional) Upgrading U2 accountsU2 accounts created with Web DE 3.x or 4.x can be used with version 5.x by completing a shortprocedure to convert them.

Upgrading existing U2 accounts to 5.x

Complete the following procedure to upgrade existing U2 accounts used in your applications fromversion 3.x or 4.x to Web DE 5.x.

Prerequisite▪ Existing U2 accounts used in Web DE 3.x or 4.x.▪ Installing Web DE (Windows), on page 13 or Installing Web DE (UNIX), on page 20

This includes installing or deploying the RedBack Object Server component to a Windows or UNIXcomputer.

Page 21: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Upgrading existing U2 accounts to 5.x

21

About this task

It is not necessary to uninstall Web DE 3.x or 4.x before installing 5.x. If you have reason to run thelegacy Web DE architecture for some U2 accounts while upgrading others to the 5.x architecture, theaccounts can coexist without any problems. However, note that any specific account can run only withthe pre-5.x architecture or with the 5.x architecture, but not both.

Procedure

1. Before proceeding to the next step, make note of the path of all application accounts to beupgraded.

2. Click Start > All Programs > Rocket U2 > Web Development Environment > U2 Web Designer.3. In the Web Designer, connect to a U2 server. For steps, see the information about making a U2

server connection in Administering U2 Web DE.4. In the U2 Resource view, expand the Accounts tree, right-click rbdefn and select Properties.5. In the U2 Account Properties window, confirm that the path to the rbdefn account points to the

current installation of rbdefn on your system, and click Finish.If the path does not point to the 5.x location of rbdefn, correct the path as follows:

a. Close the U2 Account Properties window.b. In the U2 Resource view, expand the Accounts tree, right-click rbdefn and select Delete to

remove the rbdefn account link. In the Confirm Account Delete window, select Do not deletecontents option and click Yes.

c. In the Accounts tree, right-click Accounts and select New U2 Account.d. Use the Create a New U2 Account wizard to create a link to the rbdefn account, pointing to

the current 5.x location for rbdefn, and click Finish.6. In this step, you can create a link to the U2 account to be upgraded, if necessary. This process

adds an entry for the U2 account in the UV.ACCOUNT or UD.ACCOUNT file.If the U2 account is listed in the Accounts tree, it already has an entry in UV.ACCOUNT orUD.ACCOUNT from previous usage. Proceed to the next step. If the U2 account does not appearin the Accounts tree, create a link to it as follows:

a. In the U2 Resource view, right-click Accounts and select New U2 Account.b. In the Create a New U2 Account wizard, enter the account name and path to the U2 account

to be upgraded, and click Finish.The new U2 account link is now listed in the U2 Resource view Accounts tree.

7. Enable the U2 account for Web DE as follows:

a. In the U2 Resource view, expand the Accounts tree. Right-click the entry for the U2 accountto be upgraded and select Enable for U2 Web DE.

b. If prompted for the path to rbdefn, enter the path to the current location of rbdefn on yoursystem.

8. Verify that the upgraded U2 account is working correctly as follows:

a. In the Accounts tree, expand the tree view for the upgraded U2 account.b. Expand the U2 Web DE Elements node to confirm that RBOs are accessible.

9. On the web server computer, add an entry for the upgraded U2 account to the rgw5.ini file. Forsteps, see the information about editing the initialization file in Administering U2 Web DE.

10. Repeat steps 6 through 9 for each U2 account to be upgraded.

Page 22: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

22

Chapter 3: Deploying the RedBack Object Serverto a UNIX or Windows computer

With Web DE now installed, you can use a wizard in the Web Designer to deploy the RedBack ObjectServer component to a UNIX or Windows computer.

Setting up a UNIX computerIf you want to deploy the RedBack Object Server component to a UNIX computer, you must set up aUNIX computer for that purpose.

To verify your UNIX computer meets all the requirements necessary, see Table 8: Software required onthe RedBack Object Server computer (UNIX), on page 18.

To verify your UNIX computer meets the disk space requirements necessary, see Table 10: Disk spacerequirements for components (UNIX), on page 18.

Removing previous versions of the RedBack Object Server (UNIX)

If you previously deployed the RedBack Object Server component to the target UNIX computer,remove the component to prepare for a clean installation.

1. On the target UNIX computer, navigate to the parent directory in which the RedBack ObjectServer component was deployed (for example, \U2\U2WDEnnn, where nnn is the versionnumber you installed).

2. In the parent directory, delete the entire subdirectory that contains the RedBack Object Servercomponent.

Setting up a Windows computerDeploying the RedBack Object Server component to a Windows computer is optional.

You can install the RedBack Object Server and all other components of Web DE on a Windowscomputer through the Windows installation program. For details, see Installing Web DE on Windows,on page 9.

However, it is possible to use the wizard to deploy only the RedBack Object Server component to aWindows computer. You must first set up the Windows computer on which you want to deploy theRedBack Object Server.

To verify your Windows computer meets all the requirements necessary, see Table 4: Softwarerequired on the RedBack Object Server computer (Windows), on page 12.

To verify your Windows computer meets the disk space requirements necessary, see Table 5: Diskspace requirements for components (Windows), on page 12.

Removing previous versions of the RedBack Object Server (Windows)

If you previously deployed the RedBack Object Server component to the target Windows computer,remove the component to prepare for a clean installation.

Page 23: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Deploying the RedBack Object Server to a UNIX or Windows computer

23

1. If the RedBack Object Server was installed on the Windows computer, do the following:

a. Click Start > Control Panel > Programs and Features.b. In the list of installed programs, right-click U2 Web Development Environment and select

Uninstall.2. If the RedBack Object Server was deployed to the Windows computer, do the following:

a. Navigate to the parent directory in which the RedBack Object Server component wasdeployed (for example, C:\U2\U2WDEnnn, where nnn is the version number you installed).

b. In the parent directory, delete the entire subdirectory that contains the RedBack ObjectServer component.

Deploying the RedBack Object Server to a UNIX orWindows computer

You deploy the RedBack Object Server component by using a wizard in the Web Designer.

Prerequisite▪ Verify the software requirements, as described in Table 8: Software required on the RedBack

Object Server computer (UNIX), on page 18 and Table 4: Software required on the RedBack ObjectServer computer (Windows), on page 12.

▪ Verify the disk space requirements, as described in Table 10: Disk space requirements forcomponents (UNIX), on page 18 and Table 5: Disk space requirements for components (Windows),on page 12.

▪ Create a U2 server in the U2 Resource view of the Web Designer for the UNIX or Windows computeron which to deploy the RedBack Object Server component. If you have not already done so, createa U2 server before continuing. For detailed steps, see the information about defining a U2 server inAdministering U2 Web DE.

About this task

Deployment is an optional, efficient method of installing this server component on a Windowscomputer. For UNIX, you can optionally install the RedBack Object Server as described in InstallingWeb DE on UNIX, on page 17.

Procedure

1. On the computer on which the Web Designer is installed, click Start > All Programs > Rocket U2> Web Development Environment > U2 Web Designer.

2. In the U2 Resource view, open a connection to an existing U2 server on the UNIX or Windowscomputer on which to deploy the RedBack Object Server component.

3. With the name of the U2 server selected, click Tools > Deploy to U2 Server.4. If the server software is not at or above the release level required by the deployer software, a

dialog box gives you the option to upgrade the server software.

The user credentials (either the credentials defined for this server connection in the U2 Resourceview or the Optional Server User Credentials field) must have sufficient privilege to write to thedatabase server installation directory's BP (for UniData) or BP.O (for UniVerse) and catalog areaon the server, or the upgrade will fail and the deployment will also fail.

To proceed with the upgrade, click Yes.5. From the wizard, in the Choose to Deploy a Product, Folder, or File page, the Deploy a packaged

product option is selected by default. Accept the default option and click Next.

Page 24: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 3: Deploying the RedBack Object Server to a UNIX or Windows computer

24

6. In the Choose a Product to Deploy page, select the logging level and product to deploy:

a. From the Logging Level list, select a logging option for this deployment.

The logging option sets the level of detail captured in the deployer logs on both the clientand server computers. The client logs are stored in the U2 Web Designer installationdirectory on the client computer. 

The log names are formatted as follows:

DeployToServer_yyyymmdd_hhmmss.log where yyyymmdd is the four-digit year,two-digit month, and two-digit day the log was created. hhmmss is the two-digit hour, two-digit minute, and two-digit second the log was created.

For example, DeployToServer_20130924_104012.log is the file name for a logcreated on September 24, 2013 at 10:40:12 AM.

A nearly identical log is created on the server. The log is created in the account defined in theU2 Resource view’s server connection in the “_PH_” folder (for UniData) or “&PH&” folder(for UniData), with the same naming convention.

If the &PH& folder is a Type 1 file in UniData, the length of the log name causes it to bebroken into several subfolders under &PH&, but the subfolders contain all the data.

The client and server logs are usually close to identical, but individual products might logspecific details to the client log or server log only. The two logs can be compared to seewhere an error occurs in the case of failure. The server log is created only if the &PH&/_PH_folder is writable by the user establishing the connection.

This example shows the Default logging option, which provides enough detail to verifysuccess or failure. If the deployment fails, the log indicates which operation was under waywhen the deployment failed.

b. In the Available Products list, click RedBack Object Server.c. Click Next.

7. In the Choose Destination for Deployment page, specify the destination folder for eachcomponent to be deployed:

Page 25: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Deploying the RedBack Object Server to a UNIX or Windows computer

25

Figure 4: Choose Destination for Deployment page

a. In the Base Path for Server Folder field, specify a destination path to an existing folder onthe server for the selected components.  Enter the path name or click Browse to browse toand select a path.The path of the selected folder on the server is populated in the Base Path for Server Folderfield in the wizard. The selected path is also propagated to each of the selected components.If a specific component needs to go to a different path, select a path for the component.Select the Parent Folder On Server field for that component, click Edit, and enter the path.

b. In the Deploy Component list, all components of the RedBack Object Server package areselected for deployment by default. Clear the check box for any component that you do notwant to deploy.

c. After selecting a destination folder for each component, click Next.

Tip: Click inside the Parent Folder On Server column next to the component you wantto enable an Edit button. Here you can change the destination folder for each individualcomponent.

8. In the U2 Deployment Summary page, review your selections and enter different servercredentials, if necessary.

In the Optional Server User Credentials group box, you can enter a different set of usercredentials to the U2 server. This might be necessary if the connection for the U2 server in the U2Resource view contains credentials that do not have sufficient privileges to perform some part ofthe deployment on the server, such as:

▪ Writing to the destination directory.▪ Performing logging to the connected account’s &PH&/_PH_ directory.▪ Upgrading the transfer software (XTOOLSUB) on the server if it is out of date.

Page 26: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 3: Deploying the RedBack Object Server to a UNIX or Windows computer

26

9. If you need to make changes to your selections, click Back to return to previous pages of thewizard. Otherwise, click Finish to proceed with deployment.

Page 27: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

27

Chapter 4: Deploying the Java Scheduler to aUNIX or Windows computer

The following sections describe the steps for using a wizard in the Web Designer to deploy the JavaScheduler component to a UNIX or Windows computer.

Setting up a UNIX computerIf you want to deploy the Java Scheduler component to a UNIX computer, you must set up a UNIXcomputer for that purpose.

To verify your UNIX computer meets all the requirements necessary, see Table 9: Software required onthe Java Scheduler computer (UNIX), on page 18.

To verify your UNIX computer meets the disk space requirements necessary, see Table 10: Disk spacerequirements for components (UNIX), on page 18.

Removing previous versions of the Java Scheduler (UNIX)

If you previously deployed the Java Scheduler component to the target UNIX computer, remove thecomponent to prepare for a clean installation.

1. On the target UNIX computer, navigate to the parent directory in which the Java Schedulercomponent was deployed (for example, \U2\U2WDEnnn, where nnn is the version number youinstalled).

2. In the parent directory, delete the entire subdirectory that contains the Java Schedulercomponent.

Setting up a Windows computerDeploying the Java Scheduler component to a Windows computer is optional.

You can install the Java Scheduler and all other components of Web DE on a Windows computerthrough the Windows installation program. For details, see Installing Web DE on Windows, on page 9

However, it is possible to use the wizard to deploy only the Java Scheduler component to a Windowscomputer. You must first set up the Windows computer on which you want to deploy the JavaScheduler.

To verify your Windows computer meets all the requirements necessary, see Table 3: Softwarerequired on the Java Scheduler computer (Windows), on page 11.

To verify your Windows computer meets the disk space requirements necessary, see Table 5: Diskspace requirements for components (Windows), on page 12.

Removing previous versions of the Java Scheduler (Windows)

If you previously deployed the Java Scheduler component to the target Windows computer, removethe component to prepare for a clean installation.

1. If the Java Scheduler was installed on the Windows computer, do the following:

Page 28: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 4: Deploying the Java Scheduler to a UNIX or Windows computer

28

a. Click Start > Control Panel > Programs and Features.b. In the list of installed programs, right-click U2 Web Development Environment and select

Uninstall.2. If the Java Scheduler was deployed to the Windows computer, do the following:

a. Navigate to the parent directory in which the Java Scheduler component was deployed (forexample, C:\U2\U2WDEnnn, where nnn is the version number you installed).

b. In the parent directory, delete the entire subdirectory that contains the Java Schedulercomponent.

Deploying the Java Scheduler to a UNIX or Windowscomputer

You deploy the Java Scheduler component by using a wizard. Deployment is the only method ofinstalling the Java Scheduler component on a UNIX computer. It is an optional, efficient method ofinstalling this server component on a Windows computer.

Prerequisite▪ Verify the software requirements, as described in Table 9: Software required on the Java Scheduler

computer (UNIX), on page 18 and Table 3: Software required on the Java Scheduler computer(Windows), on page 11.

▪ Verify the disk space requirements, as described in Table 10: Disk space requirements forcomponents (UNIX), on page 18 and Table 5: Disk space requirements for components (Windows),on page 12.

▪ Create a U2 server in the U2 Resource view of the Web Designer for the UNIX or Windows computeron which to deploy the RedBack Object Server component. If you have not already done so,create a U2 server before continuing. For steps, see the information about defining a U2 server inAdministering U2 Web DE.

Procedure

1. On the computer on which the Web Designer is installed, click Start > All Programs > Rocket U2> Web Development Environment > U2 Web Designer.

2. In the U2 Resource view, open a connection to an existing U2 server on the UNIX or Windowscomputer on which to deploy the Java Scheduler component.

3. With the name of the U2 server selected, click Tools > Deploy to U2 Server.4. If the server software is not at or above the release level required by the deployer software, a

dialog box gives you the option to upgrade the server software.

The user credentials (either the credentials defined for this server connection in the U2 Resourceview or the Optional Server User Credentials field) must have sufficient privilege to write to thedatabase server installation directory's BP (for UniData) or BP.O (for UniVerse) and catalog areaon the server, or the upgrade will fail and the deployment will also fail.

To proceed with the upgrade, click Yes.5. From the wizard, in the Choose to Deploy a Product, Folder, or File page, the Deploy a packaged

product option is selected by default. Accept the default option and click Next.6. In the Choose a Product to Deploy page, select the logging level and product to deploy:

a. From the Logging Level list, select a logging option for this deployment.

Page 29: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Deploying the Java Scheduler to a UNIX or Windows computer

29

The logging option sets the level of detail captured in the deployer logs on both the clientand server computers. The client logs are stored in the U2 Web Designer installationdirectory on the client computer. 

The log names are formatted as follows:

DeployToServer_yyyymmdd_hhmmss.log where yyyymmdd is the four-digit year,two-digit month, and two-digit day the log was created. hhmmss is the two-digit hour, two-digit minute, and two-digit second the log was created.

For example, DeployToServer_20130924_104012.log is the file name for a logcreated on September 24, 2013 at 10:40:12 AM.

A nearly identical log is created on the server. The log is created in the account defined in theU2 Resource view’s server connection in the “_PH_” folder (for UniData) or “&PH&” folder(for UniData), with the same naming convention.

If the &PH& folder is a Type 1 file in UniData, the length of the log name causes it to bebroken into several subfolders under &PH&, but the subfolders contain all the data.

The client and server logs are usually close to identical, but individual products might logspecific details to the client log or server log only. The two logs can be compared to seewhere an error occurs in the case of failure. The server log is created only if the &PH&/_PH_folder is writable by the user establishing the connection.

This example shows the Default logging option, which provides enough detail to verifysuccess or failure. If the deployment fails, the log indicates which operation was under waywhen the deployment failed.

b. In the Available Products list, click Java Scheduler.c. Click Next.

7. In the Choose Destination for Deployment page, specify the destination folder for eachcomponent to be deployed:

Note: The following figure displays a UNIX path as an example.

Page 30: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 4: Deploying the Java Scheduler to a UNIX or Windows computer

30

Figure 5: Choose Destination for Deployment page

a. In the Base Path for Server Folder field, specify a destination path to an existing folder onthe server for the selected components.  Enter the path name or click Browse to browse toand select a path.The path of the selected folder on the server is populated in the Base Path for Server Folderfield in the wizard. The selected path is also propagated to each of the selected components.If a specific component needs to go to a different path, select a path for the component.Select the Parent Folder On Server field for that component, click Edit, and enter the path.

b. In the Deploy Component list, all components of the Java Scheduler package are selectedfor deployment by default. Clear the check box for any component that you do not want todeploy.

c. After selecting a destination folder for each component, click Next.

Tip: Click inside the Parent Folder On Server column next to the component you wantto enable an Edit button. Here you can change the destination folder for each individualcomponent.

8. In the U2 Deployment Summary page, review your selections and enter different servercredentials, if necessary.

In the Optional Server User Credentials group box, you can enter a different set of usercredentials to the U2 server. This might be necessary if the connection for the U2 server in the U2Resource view contains credentials that do not have sufficient privileges to perform some part ofthe deployment on the server, such as:

▪ Writing to the destination directory.▪ Performing logging to the connected account’s &PH&/_PH_ directory.▪ Upgrading the transfer software (XTOOLSUB) on the server if it is out of date.

9. If you need to make changes to your selections, click Back to return to previous pages of thewizard. Otherwise, click Finish to proceed with deployment.

Page 31: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Deploying the Java Scheduler to a UNIX or Windows computer

31

Results

The wizard copies the selected components on the target UNIX or Windows computer as follows to theJava Scheduler folder within the base path:

For UNIX:

▪ getRequests.jar▪ JavaScheduler.ini▪ restartAccount.jar▪ Scheduler.jar▪ StopScheduler.jar▪ StartScheduler.sh▪ StopScheduler.sh▪ template.ini▪ U2WebDESchedulerScript

For Windows:

▪ getRequests.jar▪ restartAccount.jar▪ Scheduler.jar▪ StopScheduler.jar▪ StartScheduler.bat▪ StopScheduler.bat▪ template.ini▪ vcredist_x86.exe▪ webdeservice.exe

The JavaScheduler.ini file is copied to the base path for Windows.

For more information configuring and running the Java Scheduler, see Installing the stand-alone JSPRBOScope testing tool, on page 33.

Page 32: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

32

Chapter 5: Copying RedBeans components to aUNIX computer

The following sections describe the steps for copying and configuring the RedBeans components on aUNIX computer.

The RedBeans installation files shipped are:

▪ RedBeans.jar: Main RedBeans class files for development and run time▪ asjava.zip: Contains the UniObjects for Java class files in zip format▪ asjava.jar: Contains the UniObjects for Java class files in jar format▪ rgw5.ini: Holds the RedBeans connection information▪ rbexamples.war: Contains JSP RBExample pages

You can find these files RedBeans directory of the install.

Setting up the web server computerIf you want to run RedBeans on UNIX, you must set up the web server computer for that purpose.

To verify your UNIX computer meets all the requirements necessary, see Table 7: Software required onweb server computer (UNIX) , on page 17.

To verify your UNIX computer meets the disk space requirements necessary, see Table 10: Disk spacerequirements for components (UNIX), on page 18.

Removing previous versions of the RedBeans (UNIX)

If you previously copied the RedBeans component to the target UNIX computer, remove thecomponent to prepare for a clean installation.

1. On the target UNIX computer, navigate to the parent directory in which the RedBeans componentwas deployed (for example, \U2\U2WDEnnn, where nnn is the version number you installed).

2. In the parent directory, delete the entire subdirectory that contains the RedBeans component.

Copying RedBeans componentsTo copy the RedBeans files to a UNIX computer and configure the environment, do the following steps:

1. Locate the RedBeans folder in the Web DE product download directory.2. Transfer the RedBeans.jar and asjava.jar files to the UNIX computer on which your web

server software is running.3. Place the RedBeans.jar and asjava.jar files in the library location required by your web

server.4. Add RedBeans.jar and asjava.jar to the CLASSPATH environment variable.5. Locate and open the rgw5.ini file in the RedBeans folder. Set the path in the $U2WDE

environment variable, and then copy the rgw5.ini file to that path on your UNIX computer.6. Edit the contents of the rgw5.ini file to match the server, user, account path, and other details

to those of your system. For steps, see Configuring the RedBack gateway, on page 52.

Page 33: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

33

Chapter 6: Installing the stand-alone JSPRBOScope testing tool

The following sections describe the procedure for installing the stand-alone Java Server Pages (JSP)RBOScope testing tool.

JSP RBOScope testing tool overviewWeb DE includes a JSP-based version of the RBOScope testing tool. This stand-alone tool providesan environment for testing RBOs outside of the Web Designer. The JSP RBOScope testing tool can bedeployed in your preferred JSP web server and run through any web browser.

This version of the RBOScope testing tool does not require users to have administrative permissionson the RedBack Object Server computer and does not require the Web Designer.

The JSP RBOScope testing tool is contained in the RedBeans directory of the Web DE productdownload directory, in the rboscope.war file. The web application archive (WAR) file contains thefollowing essential files:

▪ RBOScopeError.jsp▪ RBOScopeLogin.jsp▪ RBOScopeMain.jsp▪ RBOScopeQuery.jsp▪ WEB-INF/lib/asjava.jar▪ WEB-INF/lib/rbtools.jar▪ WEB-INF/lib/RedBeans.jar

Installing the JSP RBOScope testing toolTo set up an environment for testing RBOs outside of the Web Designer, install the JSP RBOScopetesting tool on your web server computer.

Prerequisite

JSP web server software (such as Apache Tomcat or IBM WebSphere) must be installed on the webserver computer. For help with installing or setting up the web server software, consult the productdocumentation for the JSP web server.

Note: The following steps show Apache Tomcat as an example.

Procedure

1. Deploy the rboscope.war file:

a. In the Deploy section of the Apache Tomcat Web Application Manager, browse to therboscope.war file on the Web DE product download directory, as shown in the figure.

Page 34: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 6: Installing the stand-alone JSP RBOScope testing tool

34

Figure 6: Apache Tomcat Web Application Manager

b. Click Deploy to deploy the contents of the rboscope.war file to the Apache Tomcatserver.

2. In the Path column, verify that the Apache Tomcat Applications list includes the “rboscope”application, as shown in the following figure:

Figure 7: Applications list

The JSP RBOScope testing tool is ready to use for testing RBOs outside of the Web Designer. Forinformation about using the stand-alone JSP RBOScope testing tool, see Developing RBOs with U2 WebDesigner.

Page 35: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Configuring the encoding of the JSP RBOScope testing tool

35

Configuring the encoding of the JSP RBOScope testing tool

You can configure how the JSP RBOScope testing tool handles encoding by updating the rgw5.inifile. When configured to a specific encoding type, the JSP RBOScope testing tool will support anysession encoding and display the information correctly.

1. Open the rgw5.ini file in a text editor.2. In the [accountname] section, add the following:

encoding=type, where type is the encoding type. For example, UTF-8, or ISO 8859-1.3. Save and close the file.

Page 36: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

36

Chapter 7: Authorizing Web DEThe following sections describe how to authorize Web DE and to clear license violations.

Authorizing Web DEThe RedBack Object Server installation process on Windows uses the information you enter toautomatically license Web DE for a 10-day trial period. Within this trial period, you must authorize WebDE. You can authorize Web DE from an option in the Web Designer.

Prerequisite

Within the 10-day trial period, you must enter your license details on the U2 Tech Connect site athttps://u2tc.rocketsoftware.com to obtain an authorization code. After you have an authorizationcode, you can enter it through the Manage Object Server License option in the Web Designer.

Procedure

1. Click Start > All Programs > Rocket U2 > Web Development Environment > U2 Web Designer.2. In the U2 Resource view, double-click the name of the U2 server to which you want to connect.3. Enter your U2 server credentials and click Connect.4. Expand the tree view for a Web DE-enabled account and double-click U2 Web DE Elements.5. Enter your credentials for the RedBack Object Server.

The default user name of the administrator is rbadmin and the default password is redback.

Remember: Change the administrator name and password for increased security. Forinformation on changing the password of the administrator or any other user, see theinformation about creating and maintaining users in Administering U2 Web DE.

6. Click Finish.7. In the U2 Resource view, right-click U2 Web DE Elements, and select Manage Object Server

License.8. In the RBO Editor pane, the License tabbed page contains the current license details. Change the

details as needed.

Figure 8: License tab

Page 37: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Clearing violation codes

37

a. If the RedBack Object Server was deployed to this computer using the Deploy to U2 Serverwizard, change the temporary serial number displayed in the U2 Web DE Serial Number fieldto the serial number issued to you by U2.

b. In the Number of Webshares field, change the number of webshares covered by yourlicense, if necessary.

c. In the Authorization Code field, enter the authorization code generated on the U2 BusinessConnect site at www.rocketsoftware.com/u2-businessconnect-u2bc.

d. To save the changes in the License tabbed page, click the Save icon.

Clearing violation codesViolation codes are issued when abnormalities are detected with a Web DE installation, such as amissing or tampered license file. You cannot access the RedBack Object Server until the violation iscleared.

1. Contact Global Technical Support and provide the violation code to obtain a response code.Alternatively for violation code 3 or 11, you can obtain a response code on the U2 BusinessConnect site at www.rocketsoftware.com/u2-businessconnect-u2bc.

2. Enter the response code, and click OK.If the RedBack Object Server is in violation status, the Clear License Violation dialog boxappears, prompting you to enter the violation response code there.

Page 38: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

38

Chapter 8: Configuring and running the JavaScheduler

The following sections describe the steps for setting up and getting started with the Java Scheduler.

Managing the Java Scheduler on WindowsThe Java Scheduler can be installed on or deployed to a Windows computer and managed in severaladministration tasks:

▪ Configuring the Java Scheduler (Windows), on page 38▪ Running the Java Scheduler on Windows, on page 42▪ Monitoring performance on Windows, on page 44▪ Registering or unregistering the Java Scheduler as a Windows service, on page 45

Configuring the Java Scheduler (Windows)

Global and account-related parameters provide the settings that the Java Scheduler requires toprocess HTTP requests. After installing Web DE, configure the Java Scheduler by modifying settingswith a wizard in the Web Designer.

Prerequisite▪ Installing Web DE (Windows), on page 13▪ Deploying the RedBack Object Server to a UNIX or Windows computer, on page 22▪ Deploying the Java Scheduler to a UNIX or Windows computer, on page 28▪ Defining a U2 server. For steps, see the information about making a U2 server connection in

Administering U2 Web DE.

Procedure

1. Modifying default global settings (Windows), on page 382. Modifying account settings (Windows), on page 403. Inserting an account in the Java Scheduler configuration file (Windows), on page 42

Modifying default global settings (Windows)

The Default section of the JavaScheduler.ini file contains global parameters that apply to allU2 accounts on the RedBack Object Server computer. Global parameters include connection settingsand credentials, Secure Sockets Layer (SSL) security parameters, and settings for logging errors andwarnings. Modifying the global settings used by the Java Scheduler allows you to process requests forall accounts.

1. On the Windows computer on which Web DE is installed, start the Web Designer.2. In the U2 Resource view, connect to the U2 server on which the RedBack Object Server

component is installed.3. From the Tools menu, select Edit Java Scheduler Configuration.

Page 39: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Modifying default global settings (Windows)

39

4. From the Open window, browse to C:\U2\U2WDEnnn\JavaScheduler and double-click theJavaScheduler.ini file to open this configuration file in the Editor pane.

5. In the JavaScheduler.ini tabbed page, edit the parameters in the Default section:

a. Maximize the JavaScheduler.ini tabbed page and expand the Default section.b. Double-click any property in the Default section and complete the form in the wizard.

In the Server area, enter the details that are required to make connections between the JavaScheduler and the RedBack Object Server.

Table 11: Server parameters

Field Description

Host name or IPaddress

Enter the name or IP address of the RedBack Object Servercomputer.

Server Type Select the type of U2 data server running on the RedBack ObjectServer computer: UniData or UniVerse.

User Enter the operating system-level user ID for the RedBack ObjectServer computer.

Password | VerifyPassword

Enter the password associated with the user ID, and reenter thepassword to verify it.

In the Scheduler area, enter details for the Java Scheduler.

Table 12: Connection parameters

Field Description

Server port Enter the port number on which the Java Scheduler acceptsrequests. Make note of this setting; you will need it later whenediting the rgw5.ini file.

Monitor port Enter the port number on which the Java Scheduler acceptsmonitor and maintenance requests.

Log path Enter the path to the Java Scheduler log (for example, C:\U2\U2WDEnnn\JavaScheduler\JavaScheduler.log).

rbdefn account path Enter the path to the deployed rbdefn account (for example, C:\U2\U2WDEnnn\rbdefn).

c. To test the settings entered for connection parameters, click Test Connection Settings.If the connection succeeds, the wizard returns the message “Successful connection.” If theconnection fails, make changes to correct the error condition and test again.

d. To modify global settings for Secure Sockets Layer (SSL) processing through the JavaScheduler, click Next and complete the second page in the wizard.

Table 13: SSL parameters

Field Description

SSLkeystore path Enter the path to the SSL keystore for the Java Scheduler.SSLkeystorepassword| Verifypassword

Enter the password for the SSL keystore, and reenter the passwordto verify it.

Enable SSL clientconnections to thescheduler

To allow SSL client applications to make connections to the JavaScheduler, select this check box.

e. To apply the changes, click Finish.

Page 40: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 8: Configuring and running the Java Scheduler

40

f. In the JavaScheduler.ini tabbed page, review the changes in the Default section of the fileand make corrections if necessary.

6. To modify global parameters for Java Scheduler logging, in the Logging Settings area at thebottom of the JavaScheduler.ini tabbed page, select the check box for each type of informationto write to the JavaScheduler.log file.

The following table describes each parameter. Each parameter is selected by default. If you donot want the parameter, clear the check box.

Table 14: Logging settings

Parameter Description

Panic To log unrecoverable errors, select the Panic check box.Error To log serious errors, select the Error check box.Warning To log warning messages, select the Warning check box.Inf To log informational messages, select the Inf check box.Init To log initialization/termination messages, select the Init check box.

7. To save the changes to the JavaScheduler.ini file, select File > Save.

Modifying account settings (Windows)

Each account section in the JavaScheduler.ini file contains parameters that apply toconnections made to the associated U2 account only.

Tip: The rbexamples section is provided as an example that shows the values to enter for eachaccount to which the Java Scheduler needs to connect.

1. In the JavaScheduler.ini tabbed page, edit the parameters in the account section:

a. Maximize the JavaScheduler.ini tabbed page and expand the section for the account to bemodified.

b. Double-click any property in the associated account section.

In the “Establish server details for this account connection” page of the account editorwizard, enter the server details for the account connection.

Table 15: Server parameters

Field Description

Account name Enter the name to use for this account section in theJavaScheduler.ini file. This name is typically the same as theaccount name that has been assigned to the account.

Server Enter the name or IP address of the RedBack Object Servercomputer for this account.

Server Type Select the type of U2 data server running on the RedBack ObjectServer computer: UniData or UniVerse.

c. In the Connection area, enter the details required to make connections between the accountand the Java Scheduler.

Page 41: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Modifying account settings (Windows)

41

Table 16: Connection parameters

Field Description

Account path Enter the path to the account directory on the RedBack ObjectServer computer.

User Enter the operating system-level user ID for the RedBack ObjectServer computer.

Password | VerifyPassword

Enter the password associated with the user ID, and reenter thepassword to verify it.

d. To test the settings entered for connection parameters, click Test Connection Settings.If the connection fails, make changes to correct the error condition and test again.

e. In the Scheduler to Database Connections area, enter or select the minimum and maximumnumber of pooled connections available to the account.

f. To modify the account’s connection pool parameters, click Next and enter details in the“Establish account connection details” page in the wizard.

Table 17: Connection pool parameters

Field Description

Idle RemoveThreshold

To set an idle remove threshold parameter for the account, selectthe Idle Remove Threshold check box. In the field, enter or selectthe number of milliseconds that a connection pool thread canremain idle before it is flagged for removal.

Idle Remove ExecInterval

To set an idle remove execution interval for the account, select theIdle Remove Exec Interval check box. In the field, enter or selectthe number of milliseconds of the interval at which connectionsthat have been flagged for removal are removed. The sessions willbe removed until the pool reaches the minimum connection poolamount.

Open session To set an open session parameter for the account, select theOpen session check box. In the field, enter or select the number ofmilliseconds to acquire a session from the connection pool beforetiming out.

g. To modify optional parameters for the account, click Next and complete the Set optionalaccount and connection properties page in the wizard.

Table 18: Optional parameters

Parameter Description

Deactivate account To deactivate the U2 account, select this check box. You can clearthe check box to reactivate the account later, if needed.

Deactivating a U2 account prevents it from consuming server orconnection pooling licenses. It disables use of the account’s RBOs inweb applications and in the RBOScope testing tool. However, userscan access a deactivated account from the U2 Resource view andwork with its RBOs in the RBO Editor.

Enable SSL forthis account’sconnection(s) toserver

To use the SSL protocol when making connections to the U2 server,select this check box.

Page 42: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 8: Configuring and running the Java Scheduler

42

Parameter Description

Create theuoj_trace.logfile

To keep a log of UOJ processes for the account, select this checkbox.

2. To apply the changes, click Finish.3. In the JavaScheduler.ini tabbed page, review the changes in the account section and make

corrections if necessary.4. Optional: To define separate environment variable values in an account, insert an account

environment:

a. On the JavaScheduler.ini tabbed page, in the Section/Property Name column, right-clickthe name of the account and select Insert Account Environment.

b. In the Environment subsection, in the Value column for the account_desc property, enter analternative description for the account.

c. Insert additional property and value pairs for each environment variable to be defined forthe account, for example,LANG=en_USTZ=MST7MDT

Tip: You can use this technique to create an alias that points to the same account, butuses a different environment variable for connection pools.

5. To save the changes to the JavaScheduler.ini file, select File > Save.

Inserting an account in the Java Scheduler configuration file (Windows)

After creating a U2 account, you can insert a reference to the account in the JavaScheduler.inifile and configure the account settings.

1. In the JavaScheduler.ini tabbed page, add an account to the JavaScheduler.ini file:

a. Maximize the JavaScheduler.ini tabbed page.b. To add an account in the JavaScheduler.ini file, right-click in any empty cell and select

Insert Account.c. Complete the form in the wizard, following the same instructions for step 1 as described in

Modifying account settings (Windows), on page 40.2. To apply the new account details, click Finish.3. In the JavaScheduler.ini tabbed page, review the changes in the new account section and make

corrections if necessary.4. To save the changes to the JavaScheduler.ini file, select File > Save.

Running the Java Scheduler on Windows

After configuring the Java Scheduler, start the Java Scheduler service so it can process RedBeans andRedPages.NET connections from client applications. You can start or stop the Java Scheduler from theWeb Designer interface.

Prerequisite▪ Configuring the Java Scheduler (Windows), on page 38

Page 43: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Viewing the Java Scheduler log

43

Procedure

1. On the Windows computer on which Web Designer is installed, start and run Web Designer as anadministrator.

2. In the U2 Resource view, connect to the U2 server on which the RedBack Object Servercomponent is installed.

3. Expand the Accounts node.4. Expand the node of the U2 Web DE-enabled U2 account in which you want to work.5. Click the U2 U2 Elements node and enter the RedBack administrator login credentials.

The default user name of the administrator is rbadmin and the default password is redback.6. Right-click U2 U2 Elements and select Manage Java Scheduler.7. In the Scheduler tabbed page, start the Java Scheduler:

a. In the Scheduler area, click Start.b. If the Java Scheduler cannot locate the Scheduler.jar file, you are prompted to browse

to the path containing Scheduler.jar. The Scheduler.jar file default location is C:\U2\U2WDEnnn\JavaScheduler by default. To continue, click Scheduler.jar and thenclick Start again.

Note: Subsequent attempts to start the Java Scheduler do not require you to browse tothe Scheduler.jar file.

8. Optional: Click Restart account to restart the connection pool for the current account.You might make changes to account parameters after starting the Java Scheduler. The changesare not applied until the account is restarted.

The default account restart time is 60 seconds. To modify this amount of time, addMaxRestartWait=nnn to the JavaScheduler.ini file, where nnn is the amount ofseconds to wait.

9. The Java Scheduler can be left running in the background. If you need to stop the process for anyreason, in the Scheduler tabbed page, click Stop.

Viewing the Java Scheduler log

When the Java Scheduler starts successfully, a JavaScheduler.log file is generated in thedirectory specified in the JavaScheduler.ini file. The log contains statistics on requestsprocessed by the Java Scheduler. You can view this log by navigating to the file outside of the Web DE,or you can view the file directly in the Web Designer.

1. In the Web Designer, with the Java Scheduler started, click View Log.The Scheduler Log View tab appears. The log displays information 8K at a time.

Page 44: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 8: Configuring and running the Java Scheduler

44

Figure 9: Scheduler Log View tab

2. To view the next 8K of the log, click More.3. To view the last 8K of the log, click End.4. To view the first 8K again, click Start.

Monitoring performance on Windows

The Java Scheduler implements a performance monitor that records statistics on the requestsprocessed for each account. These statistics provide data to help you manage request processing anddetermine whether to make adjustments. The performance monitor runs as a separate process andcan only be started when the Java Scheduler is running.

Prerequisite▪ Running the Java Scheduler on Windows, on page 42

Procedure

1. Start the Java Scheduler and keep the Scheduler tabbed page open for this task.2. In the Monitor area of the Scheduler tabbed page, set parameters for the performance monitor.

The following table describes the parameters.

Table 19: Performance monitor parameters

Parameter Description

Interval Enter or select the number of seconds of delaybetween requests for data from the monitorthread.

The default interval is 1 second. The minimumsetting is 1; the maximum setting is 300.

Page 45: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Registering or unregistering the Java Scheduler as a Windows service

45

Parameter Description

History Enter or select the number of lines of history tokeep in the Monitor Data area of the Schedulertabbed page for each account.

The default number of lines of history is 5. Theminimum setting is 1; the maximum setting isunlimited.

3. To run the performance monitor, do the following:

a. In the Monitor area, click Start.If the monitor starts successfully, the Monitor Data area is displayed. If the monitor does notstart, make sure that the Java Scheduler is running with administrator rights.

b. Review the output, which shows the number of requests in queue, the number of websharesin use, the number of webshares available, and the number of requests processed for eachaccount.

c. The performance monitor can be left running in the background. If you need to stop themonitor for any reason, in the Monitor area, click Stop.

4. To write performance statistics to a log, do the following:

a. In the Performance Statistics Logger area, click Start.b. If the performance statistics logger starts successfully, the Perfstats.log file is created

in the U2WDEnnn folder. The default location of this folder is C:\U2\U2WDEnnn, where nnnis the version number you installed. Review the output in this log.

c. The performance statistics logger can be left running in the background. If you need to stopit for any reason, in the Performance Statistics Logger area, click Stop.

Registering or unregistering the Java Scheduler as a Windows service

The Java Scheduler process is registered as a Windows service by default, but the service can beunregistered as a Windows service, registered again through the Web Designer interface, or both.

About this task

When the Java Scheduler is registered as a Windows service, it offers the same conveniences as anyother Windows service:

▪ The process restarts automatically after the server computer is restarted.▪ The service can be started or stopped from the Control Panel > Administrative Tools > Services

panel.

Regardless of whether you run the Java Scheduler as a Windows service, you can start or stop theprocess through the Web Designer. If you prefer not to run the Java Scheduler as a Windows service,unregister the service and manage it from the Web Designer interface only.

Procedure

1. On the Windows computer on which Web Designer is installed, start and run Web Designer as anadministrator.

2. In the U2 Resource view, connect to the U2 server on which the RedBack Object Servercomponent is installed.

3. Expand the Accounts node.4. Expand the node of the U2 Web DE-enabled U2 account in which you want to work.5. Click the U2 U2 Elements node and enter the RedBack administrator login credentials.

Page 46: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 8: Configuring and running the Java Scheduler

46

The default user name of the administrator is rbadmin and the default password is redback.6. Right-click U2 U2 Elements and select Manage Java Scheduler.7. In the Windows Scheduler service area of the Scheduler tabbed page, unregister or register the

Java Scheduler as a Windows service:

▪ If the Java Scheduler is currently registered as a Windows service, the Unregister button isactive; click Unregister.

▪ If the Java Scheduler is not currently registered as a Windows service, the Register button isactive; click Register.

Managing the Java Scheduler on UNIXThe Java Scheduler can be installed on or deployed to a UNIX computer and managed on UNIX inseveral administration tasks:

▪ Configuring the Java Scheduler (UNIX), on page 46▪ Modifying environment variables on UNIX, on page 49▪ Running the Java Scheduler on UNIX, on page 49▪ Monitoring performance on UNIX, on page 50

Configuring the Java Scheduler (UNIX)

Global and account-related parameters provide the settings that the Java Scheduler requires toprocess HTTP requests. After installing Web DE, configure the Java Scheduler, configure the JavaScheduler by editing the JavaScheduler.ini file.

Prerequisite▪ Installing Web DE (Windows), on page 13▪ Deploying the RedBack Object Server to a UNIX or Windows computer, on page 22▪ Deploying the Java Scheduler to a UNIX or Windows computer, on page 28▪ Defining a U2 server. For steps, see the information about making a U2 server connection in

Administering U2 Web DE.

About this task

Configure the Java Scheduler on UNIX by editing the configuration file on Windows in the WebDesigner, which encrypts passwords in the file, and then deploy the file to a UNIX computer.

1. On a Windows computer, open Web Designer and edit a local version of theJavaScheduler.ini file from Tools > Edit Java Scheduler Configuration. For detailed steps,see Configuring the Java Scheduler (Windows), on page 38.

2. Select Tools > Deploy to U2 server > Deploy a file or folder to deploy theJavaScheduler.ini file to the target UNIX computer.

As an alternative, you can modify the JavaScheduler.ini file directly in an editor such as vi.

Important: The alternative method is the easiest way to edit the configuration file on a UNIXcomputer, but it does not encrypt passwords.

Procedure

1. Modifying environment variables (UNIX), on page 47

Page 47: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Modifying environment variables (UNIX)

47

2. Modifying account settings (UNIX), on page 473. Inserting an account in the Java Scheduler configuration file (Windows), on page 42

Modifying environment variables (UNIX)

To run on a UNIX computer, the Java Scheduler needs the values of environment variables that supplythe information required to process requests. After configuring the Java Scheduler, you must setenvironment variables on the UNIX server computer.

Prerequisite▪ Configuring the Java Scheduler (UNIX), on page 46

Procedure

1. On the UNIX computer to which Web Designer is installed, set the value of the LANG environmentvariable to en_US.

2. Set the CLASSPATH environment variable to the Java Scheduler directory (for example,CLASSPATH=/U2/U2WDEnnn/JavaScheduler).

3. Set the PATH environment variable to the directory containing JRE 6 or later.4. Set the U2WDE environment variable to the parent directory in which components of Web DE

are deployed (for example, U2WDE=/U2/U2WDEnnn, where nnn is the version number youinstalled).

Modifying account settings (UNIX)

Each account section in the JavaScheduler.ini file contains parameters that apply toconnections made to the associated U2 account only.

Tip: The rbexamples section is provided as an example that shows the values to enter for eachaccount to which the Java Scheduler needs to connect.

1. With the JavaScheduler.ini file still open in the editor, edit parameters in the [account]section:

a. On the first line of the section in the file, change the name of the account, if necessary. Theaccount name must be enclosed in square brackets (for example, [myAccount])

b. Change the value of any parameter, if necessary.

Table 20: Account parameters

Parameter Description

workdir Enter the physical path to the account directory on the RedBackObject Server computer.

MinimumPoolSize Enter the minimum number of api_slave processes to be startedand run by the Java Scheduler for the account.

MaximumPoolSize Enter the maximum number of api_slave processes to be startedand run by the Java Scheduler for the account.

ConnectionString Enter udcs for UniData or uvcs for UniVerse.userId Enter the operating system-level user ID for the RedBack Object

Server computer.password Enter the password associated with the user ID

Page 48: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 8: Configuring and running the Java Scheduler

48

Parameter Description

server Enter the name or IP address of the RedBack Object Servercomputer.

usingssl Enter a value to indicate whether to use the SSL protocol whenmaking connections to the U2 server.

0 – Do not use SSL.

1 – Use SSL.

2. Optional: To define separate environment variable values in an account, insert an accountenvironment:

a. In the [account] section, insert a subsection:

[account.Environment]

where account is the same name as the [account] section.b. In the [account.Environment] subsection, insert the following parameter and value:

account_desc=account_description

where account_description is an alternative description for the account.c. Insert additional property and value pairs for each environment variable to be defined for

the account, for example,

LANG=en_US

TZ=MST7MDT

Tip: You can use his technique to create an alias that points to the same account, butuses a different environment variable for connection pools.

3. To save the changes to the JavaScheduler.ini file, select File > Save.

Adding an account to the Java Scheduler configuration file (UNIX)

After creating a U2 account, you can add the account to the JavaScheduler.ini file and configurethe account settings.

Tip: The [rbexamples] section is provided as an example that shows the values to enter for eachaccount to which the Java Scheduler needs to connect.

1. With the JavaScheduler.ini file still open in the editor, add a section for an account:

a. On the first blank line in the accounts section of the file, enter the name of the new account,enclosed in square brackets (for example, [myAccount].

b. On each subsequent line, enter the name of the parameter, the equal sign, and a value forthe parameter (for example, password=falc0n399, as shown in the Description column ofthe following table.

Table 21: Account parameters

Parameter Description

workdir Enter the physical path to the account directory on the RedBackObject Server computer.

MinimumPoolSize Enter the minimum number of api_slave processes to be startedand run by the Java Scheduler for the account.

Page 49: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Modifying environment variables on UNIX

49

Parameter Description

MaximumPoolSize Enter the maximum number of api_slave processes to be startedand run by the Java Scheduler for the account.

ConnectionString Enter udcs for UniData or uvcs for UniVerse.userId Enter the operating system-level user ID for the RedBack Object

Server computer.password Enter the password associated with the user ID, and reenter the

password to verify it.server Enter the name or IP address of the RedBack Object Server

computer.usingssl Enter a value to indicate whether to use the SSL protocol when

making connections to the U2 server.

0 – Do not use SSL.

1 – Use SSL.

2. To save the changes to the JavaScheduler.ini file, select File > Save.

Modifying environment variables on UNIX

To run on a UNIX computer, the Java Scheduler needs the values of environment variables that supplythe information required to process requests. After configuring the Java Scheduler, you must setenvironment variables on the UNIX server computer. interface.

Prerequisite▪ Configuring the Java Scheduler (UNIX), on page 46

Procedure

1. On the UNIX computer where Web Designer is installed, set the value of the LANG environmentvariable to en_US.

2. Set the CLASSPATH environment variable to the Java Scheduler directory. For example,CLASSPATH=/U2/U2WDEnnn/JavaScheduler.

3. Set the PATH environment variable to the directory containing JRE 6 or later.4. Set the U2WDE environment variable to the parent directory in which components of Web DE

is deployed (for example, U2WDE=/U2/U2WDEnnn, where nnn is the version number youinstalled).

Running the Java Scheduler on UNIX

When you deploy the Java Scheduler to a UNIX computer, the wizard copies a standard script tothe Java Scheduler directory on the target computer. You can modify the deployed script for theenvironment and run it as needed to manage the Java Scheduler on UNIX. The script runs the JavaScheduler as a background process on the UNIX computer.

Prerequisite▪ Modifying environment variables on UNIX, on page 49

Page 50: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 8: Configuring and running the Java Scheduler

50

You must set the U2WDE environment variable to parent directory in which components of Web DEwere deployed to the UNIX computer (for example, U2WDE=/U2/U2WDEnnn, where nnn is the versionnumber you installed).

The U2 data server to which the Java Scheduler is connected must be running in order to makesuccessful connections to each U2 account. The Java Scheduler can run on a separate computer fromthe U2 data server; no checking is performed to ensure that the U2 data server is running.

Procedure

1. On the UNIX computer to which the Java Scheduler is deployed, open a command window andchange directory to the Java Scheduler path.

2. In the Java Scheduler directory, open the U2WebDESchedulerScript file for editing.3. Review the content of the U2WebDESchedulerScript file. If necessary, modify the content of

the script for the environment and save the changes to the file.4. To start the Java Scheduler, open a command window and run the script with the start

command:U2WebDESchedulerScript start

5. You can leave the Java Scheduler running in the background. To stop the Java Scheduler at anytime, in the command window run the script with the stop command:U2WebDESchedulerScript stop

6. To restart the Java Scheduler, in the command window run the script with the restartcommand:U2WebDESchedulerScript restart

The default account restart time is 60 seconds. To modify this amount of time, addMaxRestartWait=nnn to the JavaScheduler.ini file, where nnn is the amount ofseconds to wait.

When the Java Scheduler starts successfully, a JavaScheduler.log file is generated in thedirectory specified in the JavaScheduler.ini file. The log contains information similar to thefollowing:

Jan 11, 2013 8:40:27 AM com.rs.u2.u2cm.h INFO: Thread[main,5,main]--- U2CM Logging started at Fri Jan 11 08:40:27 MST 2013--- Jan 11, 2013 8:40:27 AM com.rs.u2.u2cm.h a INFO: Thread[main,5,main]Scheduler licensed for 10 webshares. Jan 11, 2013 8:40:27 AM com.rs.u2.u2cm.h a INFO: Thread[main,5,main]Starting database sessions. Jan 11, 2013 8:40:28 AM com.rs.u2.u2cm.h a INFO: Thread[main,5,main] 10 udcs database processes started for /U2/U2WDE511/rbodemo Jan 11, 2013 8:40:28 AM com.rs.u2.u2cm.h a INFO: Thread[main,5,main]The monitor for U2 Connection Manager has started on port 7071 Jan 11, 2013 8:40:28 AM com.rs.u2.u2cm.h a INFO: Thread[main,5,main]Database check started

You can navigate to the JavaScheduler.log file to view the log, or you can use the Web Designerto view it, as described in Viewing the Java Scheduler log, on page 43.

Monitoring performance on UNIX

The performance monitor in the Scheduler tabbed page of the Web Designer can be used to monitorconnections on a UNIX computer. If you prefer, you can run the performance monitor directly onthe UNIX computer to which the Java Scheduler was deployed. The performance monitor runs as aseparate, but dependent process and can be started only when the Java Scheduler is running.

Page 51: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Monitoring performance on UNIX

51

Prerequisite▪ Running the Java Scheduler on UNIX, on page 49▪ Start the Java Scheduler and keep it running for this task.

Procedure

1. With the Java Scheduler running on the UNIX computer, open a separate command window tothe Java Scheduler path.

2. In the command window, enter the following command to start the performance monitor:

java -jar getRequests.jar 200 1

The first parameter is the number of iterations to run. You can run any number of iterations.

The second parameter is the interval of each iteration in seconds. The interval is the number ofseconds of delay between requests for data from the monitor thread. Increase or decrease thissetting as necessary.

The output of the monitor is similar to the following:

Run queue is 0 Busy webshares are 0rbodemo Requests are 54180 Avg license wait time is 4Run queue is 0 Busy webshares are 0rbodemo Requests are 54180 Avg license wait time is 4

Page 52: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

52

Chapter 9: Configuring the RedBack gatewayThe following sections describe the steps for configuring the gateway by modifying the configurationfile.

RedBack gateway overviewThe key role of the RedBack gateway is to manage data transfer between the gateway and theRedBack Object Server.

The RedBack gateway components run on the web server or the client computer. The gateway usesinformation in the rgw5.ini configuration file for the following purposes:

▪ Global parameters for performance monitoring and logging. These parameters apply to all WebDE-enabled U2 accounts on the RedBack Object Server computer.

▪ Reference to the location at which each U2 account resides.

Configuring the RedBack gatewayGlobal and account-related parameters provide the settings that the RedBack gateway requiresto make connections to the RedBack Object Server. After installing Web DE, configure the JavaScheduler, and then configure the gateway.

Prerequisite▪ Installing Web DE (Windows), on page 13▪ Deploying the RedBack Object Server to a UNIX or Windows computer, on page 22▪ Deploying the Java Scheduler to a UNIX or Windows computer, on page 28▪ Defining a U2 server. For steps, see the information about making a U2 server connection in

Administering U2 Web DE.▪ Configuring the Java Scheduler (Windows), on page 38 or Configuring the Java Scheduler (UNIX),

on page 46

If you are using the Java Scheduler to process HTTP requests, configure the Java Scheduler onWindows or UNIX.

Procedure

1. Modifying default global settings, on page 522. Modifying account settings, on page 543. Inserting an account in the gateway configuration file, on page 53

Modifying default global settings

The rgw5.ini file contains global parameters that apply to all U2 accounts on the RedBack ObjectServer computer.

1. On the Windows computer on which Web DE is installed, start the Web Designer.2. In the U2 Resource view, connect to the U2 server on which the RedBack Object Server

component is installed.3. On the Windows computer on which Web DE is installed, start the Web Designer.

Page 53: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Inserting an account in the gateway configuration file

53

4. From the Tools menu, select Edit Gateway Configuration.5. From the Open window, browse to the folder containing the rgw5.ini file, and double-click it

to open this configuration file in the Editor pane.

On Windows computers, the rgw5.ini file is located in the directory specified by the U2WDEenvironment variable. The installation directory is C:\U2\U2WDEnnn by default, where nnn isthe version number you installed.

On UNIX computers, the rgw5.ini file must be created manually or created on your local clientcomputer and then copied to a UNIX system. The preferred location for this file is in /etc.

6. In the rgw5.ini tabbed page, edit the global parameters:

a. Maximize the rgw5.ini tabbed page.b. In the Global Settings area at the bottom of the rgw5.ini tabbed page, set the performance

monitor option. To log performance statistics for all Web DE-enabled U2 accounts, in thePerformance Monitor area, select the perfstats check box. The Perfstats.log fileincludes the same statistics available from the Web DE performance monitor API, such aswait time and number of requests processed for each account.

c. In the Logging Settings area at the bottom of the rgw5.ini tabbed page, select the check boxfor each type of information to write to the client log files for Web DE-enabled U2 accounts:

▪ RedBeans_accountname.log▪ RedPages_accountname_processid.log, where processid is the ID of the

Windows process with RedPagesNet.dll loaded.

The following table describes each parameter. Each parameter is selected by default. If youdo not want the parameter, clear the check box.

Table 22: Logging settings

Parameter Description

Panic To log unrecoverable errors, select the Panic check box.Error To log serious errors, select the Error check box.Warning To log warning messages, select the Warning check box.Inf To log informational messages, select the Inf check box.Init To log initialization/termination messages, select the Init check

box.Trace To log program flow tracing messages, select the Trace check box.Times To log the time (in milliseconds) for running the RBO method calls,

select the Times check box.

7. To save the changes to the rgw5.ini file, select File > Save.

Inserting an account in the gateway configuration file

After creating a U2 account, you can insert a reference to the account in the rgw5.ini file andconfigure the account settings.

1. In the rgw5.ini tabbed page, add an account to the JavaScheduler.ini file.

a. Maximize the rgw5.ini tabbed page.b. Right-click anywhere in the Selection/Property Name grid, and select Insert Account.c. Complete the form in the wizard, following the same instructions for step 1 as described in

Modifying account settings (Windows), on page 40.2. To apply the new account details, click Finish.

Page 54: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 9: Configuring the RedBack gateway

54

3. In the rgw5.ini tabbed page, review the changes in the new account section and make correctionsif necessary.

4. To save the changes to the rgw5.ini file, select File > Save.

Modifying account settings

Each account section in the rgw5.ini file contains parameters that apply to connections made tothe associated U2 account only.

Tip: The rbexamples section is an example that shows the values to enter for each accountconnection.

The RedBack gateway components, which run on the web server or the client computer, use thergw5.ini file as a reference to the location of each U2 account.

If you increase the number of accounts, the load on the RedBack Object Server and the Web servermight increase.

1. In the rgw5.ini tabbed page, edit the parameters in the account section:

a. Maximize the rgw5.ini tabbed page and expand the section for the account to be modified.b. Double-click any property in the associated account section.

In the Establish server details for this account connection page of the account editor wizard,enter server details for the account connection.

Table 23: Server parameters

Field Description

Account name Enter the name to use for this account section in the rgw5.inifile. This name is typically the same as the account name that hasbeen assigned to the account.

Server Enter the name or IP address of the RedBack Object Servercomputer for this account.

Server Type Select the type of U2 data server running on the RedBack ObjectServer computer: UniData or UniVerse.

c. In the Connection area, select an option for allocating licenses when making connectionsbetween the account and the RedBack Object Server, as described in the following table.

Table 24: Connection parameters

Option Description

Use Web Shares Select this option and enter the associated details:

1. In the Scheduler port field, enter the port number on which theJava Scheduler accepts requests from this account.

2. In the Scheduler Connections area, enter or select theminimum and maximum number of responders available tothe account.

Page 55: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Modifying account settings

55

Option Description

Use ConnectionPooling

Select this option and enter the associated details:

1. In the Account path field, enter the path to the accountdirectory on the RedBack Object Server computer.

2. In the User field, enter the operating system-level user ID forthe RedBack Object Server computer

3. In the Password | Verify Password fields, enter the passwordassociated with the user ID and reenter the password to verifyit.

4. To test the settings entered for the account connectionparameters, click Test Connection Pooling Settings.

If the connection succeeds, the wizard returns the message“Successful connection.” If the connection fails, make changesto correct the error condition and test again.

5. In the Database Connections area, enter or select the minimumand maximum number of pooled connections available to theaccount.

In the Minimum field, the minimum number of pooledconnections cannot exceed the total number of connectionpooling licenses on the U2 database server computer.

In the Maximum field, the maximum number of pooledconnections cannot exceed the total number of connectionpooling licenses on the U2 database server computer.

Password | VerifyPassword

Enter the password associated with the user ID, and reenter thepassword to verify it.

d. In the Local log folder field, enter or browse to the full path of the directory in which to storelog files on the client computer.

e. To modify the account’s connection pool parameters, click Next and enter details in theEstablish account connection details page in the wizard.

Table 25: Connection pool parameters

Field Description

Idle RemoveThreshold

To set an idle remove threshold parameter for the account, selectthe Idle Remove Threshold check box. In the field, enter or selectthe number of milliseconds that a connection pool thread canremain idle before it is flagged for removal.

Idle Remove ExecInterval

To set an idle remove execution interval for the account, select theIdle Remove Exec Interval check box. In the field, enter or selectthe number of milliseconds of the interval at which UOJ runs anexecutable to remove from a connection pool any threads that haveexceeded the idle threshold.

Open session To set an open session parameter for the account, select theOpen session check box. In the field, enter or select the number ofmilliseconds for which UOJ attempts to acquire a session from theconnection pool before timing out.

f. To modify optional parameters for the account, click Next and complete the Set optionalaccount and connection properties page in the wizard.

Page 56: Rocket U2 Web Development January 2014 WDE …...Rocket U2 Web Development Environment (Web DE) is an application development toolkit for building interactive client/server applications

Chapter 9: Configuring the RedBack gateway

56

Table 26: Optional parameters

Parameter Description

Deactivate account To deactivate the U2 account, select this check box. You can clearthe check box to reactivate the account later, if needed.

Deactivating a U2 account prevents it from consuming server orconnection pooling licenses. It disables use of the account’s RBOs inweb applications and in the RBOScope testing tool. However, userscan access a deactivated account from the U2 Resource view andwork with its RBOs in the RBO Editor.

Enable SSL forthis account’sconnection(s) toserver

To use the SSL protocol when making connections to the U2 server,select this check box.

Enable server-sidelogging for thisaccount

To log activity for this account on the U2 server, select this checkbox.

Create theuoj_trace.logfile

To keep a log of UOJ processes for the account, select this checkbox.

2. To apply the changes, click Finish.3. In the rgw5.ini tabbed page, review the changes in the account section and make corrections if

necessary.4. To save the changes to the rgw5.ini file, select File > Save.