1 1 Application Servers G22.3033-011 Session 2 - Main Theme Page-Based Application Servers Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical Sciences 2 Agenda ColdFusion 5.0 Environment PHP 4.0.6 Environment XML-Based Application Servers Summary Class Project Overview Readings Assignment #2 3 Application Servers for Enhanced HTML (a.k.a., Page-Based Application Servers) Examples Macromedia ColdFusion 5.0 Server Microsoft IIS with ASP WithEnterprise Pty Ltd Tango 2000 etc. Typically less expensive than Servers for standalone use, and servers with IDEs Technology stays within the familiar HTML confines See Session 2 Sub-Topic 1 Slides on “HTML Review”
15
Embed
Session 2 - Main Theme Page-Based Application Servers · 2003. 8. 28. · 1 1 Application Servers G22.3033-011 Session 2 - Main Theme Page-Based Application Servers Dr. Jean-Claude
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1
1
Application ServersG22.3033-011
Session 2 - Main ThemePage-Based Application Servers
Powerful and intuitive tag-based server scriptinglanguageTwo-way visual programming and database toolsRemote interactive debuggingWeb application wizards & tag-based componentarchitectureSource control integrationSecure file and database access via HTTP
17
ColdFusion Rapid Development
18
ColdFusion 5.0 Server Architecture
7
19
ColdFusion FeaturesScalable Deployment
Multi-threaded service architectureDatabase connection poolingJIT page compilation and cachingDynamic load balancingAutomatic server recovery and fail-over
20
ColdFusion FeaturesOpen Integration
Database connectivity (ODBC, OLE-DB, nativedatabase drivers)Embedded support for full text indexing andsearchingStandards-based integration (directory, mail, etc.)CORBA and COM+ connectivityOpen extensibility with C/C++
21
ColdFusion FeaturesComplete Security
Integration with existing authentication systems(NT/Win 2000 domains, LDAP directory servers)Advanced access control to files and data sourcesSupport for existing database securityServer sandbox securitySupport for Web server authentication, security,and encryption
8
22
ColdFusion Studio’s IDE
23
ColdFusion Studio’s WorkSpace
24
ColdFusion Studio
Supports other languages than HTMLHandled Device Markup LanguageSynchronized Multimedia Integration Language
Visual Tool Markup LanguageSupport the inclusion of tag editing dialogsSupport the addition of XML capabilities
CSS integration is clumsy (separate editor)Link management utility limited to page by page(no site diagramming)
9
25
ColdFusion Homesite Editor
HomeSite editorSupports on-the-fly typing validationDTD conformanceBasic syntax checkingCan categorize tag attributes by version andtypesCan add custom tags and attributes
26
ColdFusion App Server
Supports clusteringAddresses performance and scalability issues atmost levelsSupports ODBC, OLE, and native drivers forOracle and SybaseAlso supports stored proceduresSupports server load balancing (Bright TigerTechnologies’ ClusterATS) and failover
Server-side, cross-platform HTML embedded scriptinglanguagePHP is an open source project of the Apache SoftwareFoundationSee http://www.php.net/index2.phpExample (hello.php):<html><head><title>PHP Test</title></head><body><?php echo "Hello World<p>"; ?></body></html>
33
PHP Examples
Showing variables<?php echo $HTTP_USER_AGENT; ?>
Getting a list of web server variables<?php phpinfo(); ?>
Checking for Internet Explorer<?phpif(strstr($HTTP_USER_AGENT,"MSIE")) {echo "You are using Internet Explorer<br>";}?>
12
34
PHP Examples(continued)
Jumping in and out of PHP mode<?phpif(strstr($HTTP_USER_AGENT,"MSIE")) {?><center><b>You are using Internet Explorer</b></center><?} else {?><center><b>You are not using Internet Explorer</b></center><?}?>
Hi <?php echo $name; ?>.You are <?php echo $age; ?> years old.
36
Part III
XML-Based Application Servers
13
37
PHP Software
Source and binaries downloadable from:http://www.php.net/downloads.php
IncludesCGI binary plus server API versions for Apache,AOLserver, ISAPI and NSAPIMySQL support built-inMany other extensions
38
XML Application Server Architecture(HP Bluestone XML Server 1.0/Visual-XML).
39
XML Application Server At Work(HP Bluestone XML Server 1.0/Visual-XML).
See Session 2 handout on “XML MOM Application Server Frameworks”
14
40
XML Application Server At Work(Binary Evolution Velocigen).
41
Part IV
Conclusion
42
SummaryPage-Based Application Servers are either based on HTMLtagging or scriptingPage-Based Application Servers are less expensive to use andsimpler than Servers for standalone use, and servers withIDEsColdFusion is based on HTML extensions, and supports thedevelopment of tag-oriented dynamic pages for simple tasksPHP is a server-side cross-platform HTML embeddedscripting languageXML Application Servers are either MOM- or POP-orientedand rely on server-side processing of XML documents
15
43
ReadingsReadings
Building Application Servers: Part I, Chapter 2Handouts posted on the course web siteExplore the ColdFusion 5.0 and PHP 4.0 EnvironmentsRead white papers under technical resources at
http://www.bluestone.com/products/default.htmAlso read ColdFusion, and PHP related whitepapers on the vendor sites
Review network programming, and HTML (related JFCs)
Project Frameworks Setup (ongoing)Apache Web Server (version 1.3.20, www.apache.org)Perl (version 5.x, www.perl.com)ColdFusion 5.0 (www.macromedia.com)PHP 4.0.6
44
AssignmentAssignment:
Explore the textbooks’ references to Application Servertechnology (continued)#2a: Investigate page-based application serverdevelopment environments. Write a short report thatdocuments your findings and recommendations withrespect to selection criteria in support of page-baseddevelopment environments for application servertechnology#2b: See homework #2 specification
45
Next Session:Page-Based Application Servers (Part II)
ASP Environment (IIS with COM+, and ASP)ServletsJSPs and TomCatXSPs