Professional Documents
Culture Documents
Dynamic Services Mashup and Visualization
Dynamic Services Mashup and Visualization
org/ijc
Introduction
With the development of the social software and web
2.0, more and more web resources, such as open API,
open web protocol, web page, continually appear.
How to take full advantage of the existing web data
has become an important issue. Mashup is one of the
essential technologies that can reuse the existing web
resources and rapidly generate a completely new web
service. There are many successful mashup
applications, such as soufang.com that based on
Google Maps API and web data. These applications
present a new vision of the data and the huge potential
of reusing the existing web resources. However, the
productive process of the mashup application is as
long as the common application. This paper aimed to
provide a mashup pattern and platform to increase
productivity and shorten development cycles and
exhaustive automation across the board.
ETL, a tool used for extract, transform and load data,
which could support some certain web resources, such
116
www.seipub.org/ijc
www.seipub.org/ijc
The configure file must contains Bundle-Name, ExportPackage, Import-Package. The last label JavaScriptHost Object is defined to tell the web resource modules
from the common OSGi module. By this way, OSGi
can provide management for the whole web resource
modules. The web resource module also needs to
expose the scriptable object to provide API for mashup
invoking, which will be introduced in the next section.
In the framework, we capsulated the corresponding java
package to provide web resource access. Below is a list:
1.
2.
3.
4.
5.
Mashup Engine
JavaScript is an interpreted programming language
that is designed as client-side scripts to interact with
the user. Most UI developers are familiar with the
JavaScript. In the paper, JavaScript is also the language
used to design and write the mashup logic for
customizing the user interface for different platform.
Since the web resources described before are written in
Java language, a Mashup engine is needed to run
mashup scripts and call Java objects. Rhino is an opensource implementation of JavaScript written entirely in
Java. It is typically embedded into Java applications to
provide scripting to end-users. In the mashup
framework, it is used as mashup script engine.
Figure 3 contains two phases, mashup engine loading
phase and mashup script executing phase. For the first
phase, the program should load the rhino runtime first
118
2.
3.
4.
www.seipub.org/ijc
2.
3.
4.
Mashup Visualization
How to customize the user interface for different
service on different platforms is always a tough
problem for mashup. As mentioned before in the paper,
a new way to describe the mashup logic in JavaScript
has been provided. Since JavaScript is a popular
programming language for writing front-end logic, this
mashup pattern enhances the effective of writing the
user interface and processing the mashup result on
different platforms.
119
www.seipub.org/ijc
Platform
Name
Parallelism
Mashup
20
40
60
Min.
(ms)
9
9
9
Max.
(ms)
845
951
1159
Avg.
Tps
Fault
(ms) (tran/s)
30.42
25.71
0
61.92
49.63
0
105.89 69.98
0
Platform
Mashup
ETL
SOA
Create
New
Services
Yes
Yes
Yes
Web
Service
Invoking
Yes
No
Yes
Support
Dynamic
Service
Yes
No
Yes
Mash
Service
Up
Yes
Yes
No
Provide
UI
Yes
Yes
No
www.seipub.org/ijc
of
Mashup
Architecture,
in
Proc.
IEEE
Knoernschild.
Prentice
Hall,Java
Application
Informatization
(ICSEM),
2012
3rd
Solution,
in
Proc.
2010
IEEE
2nd
121