Web Service AJAX Intelligent Engine Based on XFire and DWR Framework

Similar documents
The Study on Web GIS Architecture Based on JNLP

An Architecture for Web-based DSS

Enterprise Application Development In Java with AJAX and ORM

Research Article. ISSN (Print) *Corresponding author Lili Wang

Transmitter Station Remote Monitor System Based on Browser/Server Structure

On Cloud Computing Technology in the Construction of Digital Campus

Capability Service Management System for Manufacturing Equipments in

Net-WMS FP Net-WMS SPECIFIC TARGETED RESEARCH OR INNOVATION PROJECT. Networked Businesses. D.8.1 Networked architecture J2EE compliant

Design of Electronic Medical Record System Based on Cloud Computing Technology

Research and realization of Resource Cloud Encapsulation in Cloud Manufacturing

The Research in Remote and Real-time Monitoring System of Digitized Earthquake Omen Instrument

Service-Oriented Software Testing Platform *

White Paper: 1) Architecture Objectives: The primary objective of this architecture is to meet the. 2) Architecture Explanation

Implementation of Information Integration Platform in Chinese Tobacco Industry Enterprise Based on SOA. Hong-lv Wang, Yong Cen

Design of Data Archive in Virtual Test Architecture

Research And Implementation For Remote Access Of UPnP

Visualization Method of Trajectory Data Based on GML, KML

Next Generation Lab. A solution for remote characterization of analog integrated circuits

Modeling for Web-based Image Processing and JImaging System Implemented Using Medium Model

A Web Services Created Online Training and Assessment Scheme

Actuate Business Intelligence and Reporting Tools (BIRT)

ActiveVOS Server Architecture. March 2009

SCADA Questions and Answers

Development of a Web-based Information Service Platform for Protected Crop Pests

The Research and Design of NSL-Oriented Automation Testing Framework

Development of a Learning Content Management Systems

The Power Marketing Information System Model Based on Cloud Computing

Property & Casualty Insurance Solutions from CCS Technology Solutions

Service Oriented Architecture: A driving force for paperless healthcare system

Research and Implementation of Customizable Dynamic Website Management System

Version Overview. Business value

A Service-oriented Dual-bus BAM System Model

The Research on Industrial Information Monitoring System Based on B/S Structure Xuexuan ZHU1, a

CACHÉ: FLEXIBLE, HIGH-PERFORMANCE PERSISTENCE FOR JAVA APPLICATIONS

Design Approaches of Web Application with Efficient Performance in JAVA

Construction of Library Management Information System

CONCEPTUAL MODEL OF MULTI-AGENT BUSINESS COLLABORATION BASED ON CLOUD WORKFLOW

Outline. Lecture 18: Ruby on Rails MVC. Introduction to Rails

Integration of B2B E-commerce and ERP in Manufacturing Enterprise and. its Application. Cai Ting 1 ; Liu Lei 2

Web Cloud Architecture

The Design of B2B E-commerce System Based on MVC Model and J2EE

Core J2EE Patterns, Frameworks and Micro Architectures

Lesson 4 Web Service Interface Definition (Part I)

JReport Server Deployment Scenarios

Course Descriptions. CS 101 Intro to Computer Science

Developer Tutorial Version 1. 0 February 2015

zen Platform technical white paper

How To Develop A Web Dialog For An Org Database With A Database On A Computer (Oracle)

A framework for web-based product data management using J2EE

Performance Optimization of Teaching Web Application based SSH Framework

Jaspersoft APIs. Integrating BI with your Applications. Community and Professional Editions

Software Development Interactief Centrum voor gerichte Training en Studie Edisonweg 14c, 1821 BN Alkmaar T:

Web-based Automobile Sales Management System. Huabo Xiao

The Key Technology Research of Virtual Laboratory based On Cloud Computing Ling Zhang

Research and Application of Workflow-based Modeling Approval in Dispatching Automation Master System

Service Oriented Architecture

Client/server is a network architecture that divides functions into client and server

Service-Oriented Architecture and Software Engineering

Introduction to Cloud Computing. Lecture 02 History of Enterprise Computing Kaya Oğuz

Using Tomcat with CA Clarity PPM

Commercial software development with the help of J2EE architecture and MVC

What is the NXTware Evolution Server Peter Marquez, Product Marketing ecube Systems

Chapter. Solve Performance Problems with FastSOA Patterns. The previous chapters described the FastSOA patterns at an architectural

Developing ASP.NET MVC 4 Web Applications Course 20486A; 5 Days, Instructor-led

DEPLOYMENT ARCHITECTURE FOR JAVA ENVIRONMENTS

This course provides students with the knowledge and skills to develop ASP.NET MVC 4 web applications.

Web Frameworks. web development done right. Course of Web Technologies A.A. 2010/2011 Valerio Maggio, PhD Student Prof.

Research on the Model of Enterprise Application Integration with Web Services

A Tool for Evaluation and Optimization of Web Application Performance

Chapter 4. Architecture. Table of Contents. J2EE Technology Application Servers. Application Models

Alternatives to SNMP and Challenges in Management Protocols. Communication Systems Seminar Talk 10 Francesco Luminati

JAVA/J2EE DEVELOPER RESUME

The soil nutrient monitoring system

Outline SOA. Properties of SOA. Service 2/19/2016. Definitions. Comparison of component technologies. Definitions Component technologies

JVA-561. Developing SOAP Web Services in Java

A MODERN DISTRIBUTION MANAGEMENT SYSTEM FOR REGIONAL ELECTRICITY COMPANIES

Service Oriented Architectures

Dynamic Web Programming BUILDING WEB APPLICATIONS USING ASP.NET, AJAX AND JAVASCRIPT

Big Data Storage Architecture Design in Cloud Computing

Catálogo de cursos plataforma elearning Microsoft Imagine Academy: Microsoft SQL Server y Visual Studio

Efficient Cloud Management for Parallel Data Processing In Private Cloud

Rotorcraft Health Management System (RHMS)

Design and Implementation of Production Management Information System for Jiujiang Railway Track Depot

A FRAMEWORK OF WEB-BASED SERVICE SYSTEM FOR SATELLITE IMAGES AUTOMATIC ORTHORECTIFICATION

Programming in HTML5 with JavaScript and CSS3

Internet Engineering: Web Application Architecture. Ali Kamandi Sharif University of Technology Fall 2007

Transcription:

2011 International Conference on Computer and Automation Engineering (ICCAE 2011) IPCSIT vol. 44 (2012) (2012) IACSIT Press, Singapore DOI: 10.7763/IPCSIT.2012.V44.6 Web Service AJAX Intelligent Engine Based on XFire and DWR Framework QU Zhijian a, b,*, LIU Mingguang a, WANG Jian a, b and LIU Li c a School of Electrical Engineering, Beijing Jiaotong University, Beijing China b School of Electrical Engineering, East China Jiaotong University, Nanchang China c School of civil Engineering, East China Jiaotong University, Nanchang China Abstract. In order to solve process technology and application problems of real-time data interface in power monitoring system, this paper studies scalable vector graphics XFire and DWR framework, and designs new power automation monitoring web service ajax intelligent engine based on XFire and DWR framework. Using proxool database connection pool to improve process sequence of tele-signal, telemetering, tele-control of supervisory control and data acquisition system. This paper has completed a new system architecture, and achieves real-time data communication from communication component to SVG graphic elements based on web service ajax intelligent monitoring engine. Keywords: intelligent monitoring engine;real-time process;scalable vector graphics;web service; AJAX 1. Introduction Real-time database is an important component in automated monitoring system. At present, realization of Web monitoring interfaces and functions are very different, and some systems use ASP and ASP.net, et al; some other systems use applet to show graph of real-time database; still some others build web service interface. At present, web service interface is a sharing interface, which can contain web-based interface, improve current difficulties in openness of graphics information and real-time database. Most of power automation monitoring system use C/S (client/server) model to interact between real-time database and monitoring system interface. [References 1-5] studies how to use computer technology(such as XML, SVG, et al.) to solve data problems and user visual interface problems in automation systems. With development of some technologies of Web service and AJAX[6-7], intelligent interface problem may be solved using some frameworks, such as XFire framework and DWR framework, which can be inserted into architecture between real-time database and monitoring graphic system in power control system. In this paper, a new design is presented to help implement intelligent process engine, and to facilitate designer to conduct exchange of real-time data. 2. Key Technologies 2.1. SVG Technology SVG is an expansion of two-dimensional vector graphics format based on XML (extensible Marker Language), SVG is designed to meet growing web application for the dynamic, scalable complexity of content, and realizes interactive and flexible demands. In this paper, SVG will be used in human machine interface power automation system to upgrade graphics performance and operation ability of web-based power * Corresponding author. Tel.: +86-18679116885 E-mail address: 08117324@bjtu.edu.cn. 31

application system, SVG provides a network standard for electric power automated monitoring system [7-10], and is bound to make new changes of traditional human machine interface in graphics format, Now SVG can be embed in firefox 3.0 browser. 2.2. Web Service Web Service is loosely coupled, reusable software modules; it encapsulates discrete functionality, after the release of the Internet, through a standard Internet protocol to access in the program. Web Services is a middleware that can be applied in internet about different operating systems, Web services enable us to build distributed systems where application components on a network can be accessed in a platform-neutral, language-agnostic, and implementation-independent way. How applications are developed, what language they use, or what OS platform they run on, which are not matter. Web services have some mainly concepts: 1) XML: Default data format used across all layers of Web services environment. 2) SOAP (Simple Object Access Protocol): The default protocol for packaging and exchanging messages, which is not really for accessing objects, and it is not simple any more. 3) WSDL (Web Services Description Language): The language that describes Web services. Although based on XML and understandable by humans, WSDL is mainly for machine consumption, to be read and understood by client programs. 2.3. XFire POJOs (Pure Old Java Objects or Plain Ordinary Java Objects), that can be deployed on any Servlet compliant servlet container such as Tomcat. XFire supports other lightweight application container technologies, including Spring and Hibernate. XFire can be easily embedded inside a Java application providing web service client or server functionality. 2.4. DWR Framework DWR(Direct Web Remoting) is a web framework for remote calls, this framework allows AJAX development simply, which is a Java library that enables java on the server and java script in a browser to interact and call each other as simply as possible. DWR can generate java script to allow web browsers to securely call into java code almost as if it was running locally, and it can marshal virtually any data including collections, POJOs, XML and binary data. 3. Web service Ajax Intelligent Engine Model Power automated monitoring system includes tele-signal, tele-metering, tele-control, real-time curve, alarm, all requests, query of records, query of reports, and so on, which need to build some web service interfaces, Figure 2 shows interface collaboration of the SOA(Service-Objected Architecture) architecture, which is following as "find, bind, and invoke" model, and browsers use dynamic service location to find services that match their criteria through the query service registry, and if the service exists, registry will provide users interface contract and service endpoint address, then interfaces will be invoked, when data return, they will enter DWR, this AJAX engine can intelligent filter many data that have not change. In power automated monitoring system, changed data are only a small number of all data, so intelligent engine can greatly improve the efficiency of real-time data call. Fig.2. Web service AJAX intelligent engine structure 32

4. Container configuration and process flow 4.1. Configuration of DWR Container In DWR framework, web.xml of Web-INF directory for graphics published system platform can set Servlet container, and set container properties of DWR Servlet, browser is used to implement request receiver, and the results return to browser, and configuration code is as follows: <servlet> <servlet-name>dwr-invoker</servlet-name> <servlet-class>org.directwebremoting.servlet.dwrservlet</servlet-class> <init-param><param-name>debug</param-name><param-value>true</param-value></init-param> </servlet> <servlet-mapping><servlet-name>dwr-invoker</servlet-name> <url-pattern>/dwr/*</url-pattern> </servlet-mapping> 4.2. JavaScript and SVG Data Access SVG canvas embeds in browser, which visits data through DWR Ajax engine and web service contains, and then web service component accesses database server using JDBC database connection pool. Fig.3. JavaScript and SVG data access Database connection pool is a cache of database connections so that the connections can be reused when required, and connection pooling is a technique used to avoid the overhead of making a new database connection every time an application or server object requires access to a database. Proxool database connection pool component is used to build many logical connections for web service ajax monitoring engine. 4.3. SVG Equipment Display Flow As the operation of private complicated image format, SVG vector graphics format is considered in power system monitoring, SVG uses XML to describe vector graphics, which can be smooth zooming. Therefore, it is easy to implement graphic display, operation and transformation using JavaScript scripts and DOM (Document Object Model). For example, description a two-winding transformer with SVG is as follows: 1) Two-winding transformer definition <defs> <symbol id="#two_transformer" viewbox="0 0 50 50"> <circle cx="20" cy="20" r="10"/> <circle cx="20" cy="30" r="10"/> </symbol> </defs> 33

2) Two-winding transformer reference <use xlink: href = "# Two_Transformer" id = "#B2" class = "on" x="100" y="100" width="50%" height="50%"/> 3) SVG Elements operate process flow Class attribute in graph element reference is a style of display, and when class value is equal "on", which defines a statement in the style sheet. For example, the transformer style can be defined as (stroke: red; fill: none;), it means the red edges, and do not fill the middle part. Then JavaScript can read and write SVG elements by document object model and a typical tele-signal operate model is as Figure 4. 5. Run and Test Fig.4. JavaScript operate process flow of tele-signal SVG elements Real-time remote monitoring system must archieve connection with each other between long-range communication sub-system and real-time database sub-system. This connection can be achieved by soap protocol and web service component interface. 6. Acknowledgements We would like to thank the National Natural Science Foundation of China(No.51007023), JiangXi Province Educational Department Science and Technology Research Project of China(No.GJJ09223, No.GJJ10138), JiangXi Province Science and Technology Department Project(No.2009BSB08702), for cofunding our work and the anonymous referees for their constructive comments that helped us to improve our paper. 7. References [1] HE Zhimin, TU Guangyu, LUO Yi, et al. Application of XML technique to data exchange in power system automation. Relay, 2004, 32(6): 13-16. [2] CAO Yang, YAO Jianguo, ZHANG Shenming, et al. Application of XML in the automation system of power network. Automation of Electric Power Systems, 2002, 26(21): 73-76. [3] SHI Dongyuan, LU Yansheng, WANG Xinghua, et al.study of the application of SVG in power system graphicalized software. Relay, 2004, 32(16): 37-40. [4] LI Yaping, YAO Jianguo, HUANG Haifeng, et al. Application of SVG in the dispatching automation system of power network.automation of Electric Power Systems, 2005, 29(23): 80-82. [5] WANG Zhinan, WU Wenchuan, ZHANG Boming, et al. Study and implement of CIS and SVG based on IEC 61970. Automation of Electric Power Systems, 2005, 29(22): 60-63. [6] HAN Xiaohao, YIN Xianggen, ZHANG Zhe. Review of embedded Web server technology and its application in power system. Power System Technology, 2003, 27(5): 58-62. 34

[7] JIN Min, ZHOU Xiang, XU Tianjun. Design andimplementation of embedded Web server in substation automation system. Automation of Electric Power Systems,2002, 26(18): 65-6. [8] ZHANG Shenming,HUANG Haifeng. Architecture of Power Dispatching Automation System Based on IEC 61970 Standard. Automation of Electric Power Systems,2002, 26(10): 45-47. [9] WANG Zhong,DONG Xin,CHEN Xiaoou. SVG A New Language Specification Supporting Scalable Vector Graphics for Web Browsing. Journal of Image and Graphics, 2000, 5A(12): 1039-1043. [10] WU Wenchuan,ZHANG Boming, TANG Lei, et al. A Graphic System Supporting SCADA/PAS/DTS Integration. Automation of Electric Power Systems, 2001, 25(5): 45-48. Fig.1. System architecture 35