Archive for December 22, 2009

December 2009 Newsletter Published

 The December 2009 WebClient newsletter is available at this link.

Highlights of this edition include:
 
  • New tips published for deploying Tomcat applications with Apache/SSL, and changing your Plex panel backgrounds to a festive holiday javascript snow fall.
  • WebClient test drive made available
  • Version 1.4.18 released
  • CA World planned for May 2010, with extensive virtual conference. WebClient will be on display.

http://archive.constantcontact.com/fs026/1102336365834/archive/1102898322315.html

Deploying WebClient Applications using Tomcat/Apache with SSL

There are benefits to running secure production WebClient/Websydian applications under a combination of both Tomcat and Apache. This configuration can be the highest performance option, and can be run under SSL for security. Tomcat and Apache are both free, open source software that are proven in high performance production environments. While lacking some of the management features of advanced web application servers like IBM Websphere, the reduced cost mitigate this in many cases.

The following diagram depicts a high-level view of the architecture:


There are two major components in the setup: the Apache web server and a Tomcat servlet container.

Apache is a fully-featured web server, meaning it has the ability to serve static pages to users while offering a variety of options that provide value in web environments. Strictly a web server, it has no ability to serve dynamic pages, in other words, content that changes with user input or other sources of data. Dynamic pages might be implemented with Apache by using different mechanisms like modules to allow execution of languages like PHP and Perl. In this scenario, the mod_jk module is used to connect Apache with an existing Tomcat installation, obtaining the equivalent result of enabling Apache to serve dynamic pages but with help from an external service.

A web client is defined as a single user requesting content from a web server. The web server will handle requests and return a response for each client’s request. This is the basic interaction between clients and servers in web applications. In this setup, web clients will be able to establish a secure communications channel between them and the server by using the HTTPS (HTTP over SSL) protocol. HTTPS support is provided by mod_ssl, an extension module for the Apache Web Server.

View all the details on the setup here.

Let it snow – fun with templates

Lets have a bit of fun with our CA Plex / WebClient application – lets change the panel background to a snow storm. This will be done with a bit of javascript, and adding a triple “myfunction is a SnowShell”. We will use the javascript example posted at this URL http://javascript.about.com/library/blsnow2.htm.

SnowPlex

First download this zip containing HTML/Javascript and snowflake images. You will use these files in the exercise.

Steps

1. Create a SnowShell web template shell function

Most Plex developers are familiar with this concept. Enter two triples like the screen print below.

SnowPlexStep1

2. Inherit from the new function

 Here is a very simple example.

SnowPlexStep2

3. Create a web template file

Switch over to Eclipse/Rational and insert a new template into your project. For simplicity we will add directly to the WebClient template folder, but typically you will add this to a new project folder with your WebClient customizations. To add the new template, copy the SnowShell-page.wcli file into this folder. This template is very simple.

Two bits of html/javascript are required, highlighted in red:


/(!CSSInit)
@import "/wxpcourse60web/CSS/standard.css";
/(!CSSInit)

/(!HeadArea)
<script src="/(!WsRes)/js/snow.js" type="text/javascript">
</script>
/(!HeadArea)
/(!MainArea)

<table border="0" width="100%" height="48px">
<tr>
<td valign="top">
<img src="/(!WsRes)/images/snowflake.gif"></img>
</td>
<td align="right"
<a href="#">My WebClient i+ Application</a> | <a href="#">Logout</a> | <a href="#">Preferences</a> |<a href="#">Help</a>
</td>
</tr>
</table>
<div>
<div style="position: relative;">
/(!AttachPoint:name=MainArea)
</div>
</div>
<script type="text/javascript">
startSnow();
</script>
/(!MainArea)

4. Copy the supplied Image, CSS, and js files

Copy the supplied images, CSS, and JS into your WebContent folder, into subdirectories by these names.

5. Gen and build, and view results

Happy Holidays!

WebClient i+ Technology Bulletin 20091220

WebClient i+ Developers –

  • WebClient Patch Release 1.4.18 is released. To obtain this release, please login to http://webclientiplus.com and select Developer Content and Software Downloads. 
  • This release contains bug fixes only. Consult the release notes for the full list fixes and updates in this release.
  • Important Note: It is our policy to publish product updates as soon as they become available. However, unless you have been specifically advised by product support to upgrade, we do not recommend upgrading without careful consideration of the impacts to your current application. If you have questions, please open a support ticket.

Best Regards, 

The Websydian WebClient i+ development team

 
 
© 2013 CM First Group - All rights reserved