Why ColdFusion is incorporating JAVA Servlets

Download Report

Transcript Why ColdFusion is incorporating JAVA Servlets

Why ColdFusion is incorporating
JAVA Servlets
Overview
•
•
•
•
Overview of generic problem
Detailed View of ColdFusion
Applications of ColdFusion on Co-Op
Future developments analysis
Architecture Design for
WebApps (3 Tier Arch.)
Clients
1
2
3
4
Web Servers
Databases
What people want when
developing a web app
•
•
•
•
•
Browser Independence
Ease of programming
Scalability in application functionality
Rapid development of application time
One consistent look and feel of
programming structures
How it Works
What is ColdFusion?
• ColdFusion is a complete Web application
development platform—a programming
language, an application server, a
development environment, and a framework
for delivering enterprise services. But it is
also a straightforward technology for adding
basic Web database functionality to your
Web site.
Code Example
<!--index.cfm-->
<cfinclude template=“app_locals.cfm”>
<cfswitch expression=“#attributes.fuseaction#”>
<cfcase value=“main”>
<cfinclude template=“qry_GetShoppingCart.cfm”>
<cfset UserShoppingCart=session.UserShoppingCart>
<cflocation url=“index.cfm?fuseaction=Catalog”>
</cfcase>
<cfcase value=“addItem”>
<cfinclude template=“act_AddItem.cfm”>
<cflocation url=“index.cfm?fuseaction=cartSummary”>
</cfcase>
<cfcase value=“ClearCart”>
<cfinclude template=“act_ClearCart.cfm”>
<cflocation=“index.cfm?fuseaction=Catalogue”>
</cfcase>
</cfswitch>
Reasons why it is commercially
accepted
• Simplicity - easy to learn
• Power – over 70 tags available in language
• Community – large open source community
of developers
• Software Maturity – was originally created
in the late 80’s
Interaction Diagram
Weather
Server
(TWS)
Interactions using
Server Side Scripting
CGIs, ASP, Java
Servlets , Cold Fusion
Ethernet Interconnect
Interactions between
Server and database
JEES
Application
Server
(UNIX)
Interactions between
Server and TDAs
Weather Database
Weather
Web Products
Weather Data
Weather Datacube
WxFX
Introduction of JWIS
Concept of Operations
(CONOPS)
JWIS will automate weather
support to the mission planning
and execution process through
an interactive, dynamic webbased interface that supports
operational and tactical level
planning/decision making,
mission rehearsal and training.
JWIS will take the first steps
towards automatically
integrating weather forecast and
impact databases into AF
mission planning systems.
ColdFusion in AF
Results
Deficiencies of ColdFusion
• Macromedia is the only vendor that dictates
ColdFusion code structures
• Rapidly losing market share to Java Server
Pages
• Much smaller toolkit than JAVA
– Not as many options available
Other Technologies Available
• Active Server Pages
(ASP’s)
• PHP
• Perl
• Java Server Pages
(JSP’s)
Macromedia’s Solution
• ColdFusion Version 5.0 will incorporate a
JAVA taglet library
• Will incorporate two different scripting
languages and application frameworks that
run in the same environment
Reasoning Behind Solution
• Merges two popular design paradigms
• Provides a niche for Macromedia to be
involved in the emerging adoptability JAVA
What Servlets Have to Offer
• JAVA equivalent to Active Server Pages
• Platform Independent
• Easy for any JAVA class to be instantiated
into JSP code
• Can include any future JAVA capabilities
ColdFusion 5.0
• JAVA developers can now change classes
without having to restart ColdFusion each
time
• Incorporation of JAVA specific tags
• Incorporation of JRun’s JAVA server into
ColdFusion
Impact of Decision
• Easier for programmers to develop
applications
• Allows for different levels of ability to
develop applications
• Eliminates need for a ColdFusion server
and a separate Java server to run 1 web site
on IIS