Manual

12 Configuring MyFaces Applications on NonStop Systems..............................239
NonStop Platform Configurations.................................................................................................239
Determining the Application Parameters................................................................................239
Determining the Maximum Capacity of NSJSP Instance.........................................................239
Configuring iTP WebServer for MyFaces Applications...........................................................240
Configuring httpd Processes to Handle Maximum Load................................................241
Limiting the Maximum Number of Incoming Requests....................................................243
Configuring NSJSP for MyFaces Applications.........................................................................244
Configuring SessionBasedLoadBalancing.................................................................244
Configuring Connector Threads.........................................................................................246
Configuring the Connector Element...........................................................................246
Configuring the Executor Element.............................................................................246
Configuring TS/MP Specific Parameters.............................................................................247
NSJSP configured with SessionBasedLoadBalancing turned OFF.......................247
NSJSP is configured with SessionBasedLoadBalancing turned ON....................248
Configuring Java Runtime Arguments...............................................................................249
-Xmx...............................................................................................................................249
-Xss...............................................................................................................................249
-Xnoclassgc...............................................................................................................249
Determining the Maximum Capacity of NSJSP Instance...................................................249
13 Getting Started with MyFaces............................................................................251
Prerequisites..................................................................................................................................251
NonStop System.......................................................................................................................251
Windows System......................................................................................................................251
Overview of SkinSelector...............................................................................................................251
Developing SkinSelector on Windows using the Eclipse IDE.................................................251
Creating a Dynamic Web Project........................................................................................253
Creating the index.jsp File.............................................................................................257
Modifying the web.xml File..............................................................................................259
Adding Dependency JAR Files to the Project Library........................................................261
Creating Views for SkinSelector..........................................................................................264
Creating the css and results Folder................................................................................264
Creating the style.css File.......................................................................................265
Modifying the style.css File.....................................................................................266
Creating the customize.jsp File...............................................................................267
Modifying the customize.jsp File............................................................................267
Creating the same-color.jsp and show-preview.jsp Files.......................................268
Modifying the same-color.jsp File..........................................................................268
Modifying the show-preview.jsp File.....................................................................269
Creating the Managed Beans..............................................................................................270
Creating a New Package................................................................................................270
Creating a New Java Class File......................................................................................271
Modifying the Java Class File........................................................................................272
Creating the Configuration File..........................................................................................274
Deploying SkinSelector on NonStop........................................................................................277
Creating the SkinSelector Application WAR File on Windows..........................................277
Deploying the SkinSelector WAR File in NSJSP on NonStop.............................................279
Running SkinSelector on NonStop...........................................................................................280
E Installing MyFaces Trinidad Framework Libraries on NonStop........................283
Downloading MyFaces Trinidad Distribution..............................................................................283
Copying MyFaces Trinidad Runtime Libraries from Windows to NonStop................................283
Table of Contents 9