You are on page 1of 4

Proceedings of 2009 4th International Conference on Computer Science & Education

The education in Java programming and the


deployment in E-commerce project

Anbao WANG 1 HaiLan Pan2 Wenrong JIANG 3


School of Computer and Information, School of Computer and Information, School of Computer and Information,
Shanghai Second Polytechnic Shanghai Second Polytechnic Shanghai Second Polytechnic
University University University
Shanghai 201209 China Shanghai 201209 China Shanghai 201209 China
abwang@it.sspu.cn hlpan@it.sspu.cn wrjiang@it.sspu.cn

Abstract: The paper discussed the elementary theory and one of the three basic capabilities in the 21thcentury, students
essentiality in E-commerce at first. In the next section, the have to learn computer courses ever from primary school [4].
knowledge about JSP, Java BEAN, SERLET and EJB and so on
was introduced, also the paper talked about why to select Java as E-commerce has raised widespread concern in recent years.
E-commerce project programming language, project deploying and It does not have a unified standard and understanding. Many
methods in E-commerce project. The relation of the education of computer manufacturers (the main promoters of e-commerce)
Java programming and the deployment of E-commerce project was speak uncompromising for their own commercial purposes; it
discussed importantly. makes people feel more obscure about E-commerce
‘conception. In fact, E-commerce is not mysterious. It has
Keywords: Java programming, education, the deployment of E- many successful practices already around the world, including
commerce project, frmework technique China.
I. INTRODUCTION At present, E-commerce has become the fastest growing
Java has evolved rapidly since its introduction by Sun international business activities as an important business
Microsystems in late 1995 and it has been difficult for software activity patterns. As a brand-new operation mode of commerce,
vendors to update their products to keep pace with new it has played an increasingly important role in development of
language features. Netscape, Microsoft and other vendors modern economy. In the actual business activities, most of the
quickly adopted the first version of Java [1]. technical supports for E-commerce systems are Java-based
distributed database, dynamic web applications interacting with
Java programs are compiled for a relatively simple Virtual backgrounds database and the users. Thereby, How to build an
Machine, VM, which can be implemented on any computer efficient E-commerce system have become the key to the
architecture, i.e., RISC or CISC, running any operating system, development of E-commerce in the Internet / Intranet
i.e., UNIX, Mac, or Windows. Although this VM does not environment.
provide as rich a set of instructions as a modern
Accompany with the advent of the Internet economy, E-
microprocessor, the virtual machine can implement a user
commerce has developed very rapidly, and security issues have
interface with buttons, a drawing canvas, and other graphical
become the core issue of e-commerce. Java technology as
elements. Compiled Java programs produce class files
development tool in E-commerce systems, if we make full use
containing the byte-code for the Java virtual machine [2].
of the Java object-oriented technology; independent of the
The Java programming language has been a phenomenal platform; portability; distributed; multi-threaded; secure and
success. By removing some of the syntactic absurdities of C++, reliable features and so on, are able to better guarantee the
Java has become the dominant language for undergraduate security of E-commerce, so it is essential to learn Java
programming courses. Its simple object-oriented model and technology very well for E-commerce systems development.
libraries for networking and graphical user interfaces have In the following section we will introduction Java education
made it better suited to conveying object-oriented concepts and and a few main courses; its relationship with the development
advanced computing topics such as threads and distributed of E-commerce systems will also be discussed.
objects. In addition, its platform-independent architecture has
made it the language of choice for developing applications that II. JAVA COURSES RELATED TO E-COMMERCE SYSTEM
run anywhere, from the smallest devices to the most scalable DEVELOPMENT
servers [3]. A. Java Programming
In China, almost every college has set up computer major Java program design is basic undergraduate courses for E-
and undergraduates majoring in computer outnumber any other commerce professionals. Through the study to allow students a
majors. Since the skill to use computer has been regarded as more comprehensive understanding of advanced computer
programming languages and master basic approach of using

1392 978-1-4244-3521-0/09/$25.00 ©2009 IEEE


Proceedings of 2009 4th International Conference on Computer Science & Education

computer to solve the problems, it also can lay a solid C. Advanced Programming
foundation for the following study of E-commerce technology. Advanced programming is basic undergraduate courses for
Java programming language is a language described in E-commerce professionals, but it is optional. Through the study
Java. It requires students to understand the basic concepts of of this course, it can enable students to further consolidate the
program design. It is essential for Programming Practice which basic concepts of object-oriented program design methods and
should conform to industry standardization, learn to use the characteristics of the Java language; also it can learn a
programming language to construct real-world data and process number of advanced applications in the object-oriented design
the electronic data. At the same time, it is very important to of Java language including multi-threading, network
require students to learn how to use Java language to create programming, collections API, JDBC, JSP, and some advanced
Java program, be proficient in a simple development platform, features. In currently, more and more software adopt b/s
describing and using Java event processing mode and the structure in Java, for example, multimedia network applications
features of object-oriented of Java programming[5], programming and some integrated projects etc.
implementation the input, output functions and file operations, It not only requires students to master the object-oriented
using AWT and Swing class library to develop a graphical user programming methods and basic skills, but also needs students
interface program, using Java language exception handling to understand the basic concepts of thread’s life cycle, grasps
mechanism to implementation of control procedures and the the multi-threaded programming techniques including
definition of the user's own exception handling. synchronization, monitoring, and deadlock , studies the basic
Encoding in the process of E-commerce system methods of network programming and masters the operation of
development can not be separated from some programming socket in different ways as well.
language; the vast majority technology used in current E- Understanding Java collection and some its realized
commerce system development is Java programming methods is necessary for students to learn how to use the
technology, therefore, Java programming is a basic framework. Database connection techniques are used in E-
professional course to the development of E-commerce system. commerce system development widely; thereby it’s important
laying a solid foundation, it provides the basic skills for a to learn how to use the JDBC in Java. In this course,
number of follow-up E-commerce systems development programming in graphic, Java bean, JSP and RMI is also
courses. needed to learn well.
D. application development in Enterprise (Java)
B. Data Structures and Algorithms (Java) Through the study of this course, it can enable students to
further learn the development of applications used in enterprise
Data Structures and Algorithms (Java) is basic and Java project development skills. in order to improve the
undergraduate courses for E-commerce professionals, its efficiency and performance, learning how to use eclipse
research has a close relationship not only with the study of platform to develop Java applications, mastering EJB
computer software but also with the computer hardware. The technology and project integration and distribution is also
main purpose is to learn to study and analyze the characteristics necessary.
of the data object of the computer; thereby it is convenient to
select the appropriate data structure, Storage structure, E. E-commerce project development
corresponding algorithm and mastering the algorithm time and Through the study of this course, it can enable students to
spatial analysis methods enhance their capacity in practical including various concepts,
This course is described by Java language for its description technology and skills, solve practical problems they
purpose. Proficiency in several typical data structures, such as encountered in job and cultivate the spirit of team work and the
table, tree and graphic, various types of data structure on the specifications software engineering design at the same time
basic operation and its application is very useful, on this The purpose is to further consolidate and master enterprise-
condition, focus on understanding the internal search and sort, level Java application development technologies and use the
is helpful to grasp the methods of algorithm time and spatial knowledge studied form the previous curriculum about the
analysis and further improve the algorithm design and software project analysis and design method. it makes students
implementation capacity. to develop program for the various mission in the project using
Although there is no direct relationship between the Data database design methodology, unit testing, functional testing
Structures and Algorithms (Java) and the E-commerce system methods and CVS team development methodology,.
development process, it is the theoretical foundation to ensure The task is to enhance project development capacity and
that any system is to be develop whit high-quality, high skills, promote level of software design and master project
efficiency and so on, It is very essential to learn this course testing technology, and cultivate the ability of writing project
very well for E-commerce system development. If users want documents, teamwork capacity and adaptability in the project.
to develop high-quality E-commerce website or applications,
the course of data structures is one of its most important
theoretical foundations.

978-1-4244-3521-0/09/$25.00 ©2009 IEEE 1393


Proceedings of 2009 4th International Conference on Computer Science & Education

III. BUILD E-COMMERCE PLATFORM BASED ON JAVA is the biggest advantage of using EJB. By means of the feature
TECHNOLOGY of platform independent in Java, the distributed system
deployed by EJB can be used in various platforms which are
A. brief introduction Java technology used by the E- not limited [6].
commerce platform
EJB is a part of J2EE, which defines a multiple application
We select technologies such as JSP, SERVLET, JavaBeans
criteria based component. The service of network support and
and EJB as E-commerce development tools, therefore, we need
SDK developer kernel toolkit are prominence features in EJB.
to install the Java development tools (JDK) and Tomcat (web
server), using DB2 as backgrounds database. In the following Enterprise Java Beans (EJB) is known as Java enterprise
we will simply introduce the main technologies we have used. Bean in J2EE,which is the core code includes Session Bean,
1) JSP technology Entity Bean and Message Driven Bean.
JSP (Java Server Pages) is a scripting language used in 5) framework technique
Web Programming, It developed by Sun Microsystems Struts spring and hibernate as enterprise calculating
Company and was released in June 1999, and it is a web solution are accepted by industry, new features of technique
development technology based on Java and the Java servlet. used in system improve security and stability of system. These
Taking advantage of this technology user can set up advanced, framework techniques not only make a good use of resources,
secure and cross-platform dynamic web site. JSP technology but also make the project developing to be compact and clear in
which has the characteristic of writing once and using every frame, besides good expansibility and maintainability also are
where can run at any platforms which in line with the Java provided by this kind of system [6-9].
environment. JSP technology can run on Web servers and
support many developers toolkit. B. The structure of E-commerce platform
Making sure that we will use technology of Java, we must
2) servlet technology build platform, figure 1 is the structure of E-commerce
Servlet is a Java program which uses Java servlet API, environment.
correlative classes and methods. In addition to these, servlet
also can be use to extent and add to Java API classes’ package. HTTP
Servlet runs on Java web server or application server, at the Applet Container /HTTPS Web Container EJB Container
same time, servlet extends these servers’ capability too, just
like Java applet deploys on the web browser and executes Applet JSP SERVLET EJB
t RMI
inside the web browser, servlet deploys on the web server and
executes inside the web server. Java servlet API defines an
HTTP/HTTPS
interface standard between servlet and JVM, therefore, servlet App Client J2SE
Container
is platform independent technology. RMI/IOP
App Client
Servlet provides services of request and respond on the web RMI JavaMail JAT JMS
via creating a frame to extend server capacity. When client JDBC JDNI JAF
send request to server, server will send request message to Database
servlet at once, and servlet must response the client. The web
server can load servlet automatic when the server starts or
client requests service for the first time, and servlet can run Figure 1. web application structure
continuously until other clients send requests.
During software development the developer always give
3) Javabean attention to soft reusability, and the component of JSP is just
In fact, JavaBeans is a kind of class, which is soft platform independent and reusability, which contains EJB,
component model depicted by Java language. And all these JavaBeans or customized JSP tag. EJB can accessing
classes follow an interface style, it is convenient for the users to traditional database, and run as distributed system pattern in
make use of the function naming, the underlying behavior or UNIX or windows. JSP tag can extend to supply simple and
the inheritance behavior, so we can have classes constructed xml-compliant interface for developer, namely share web page
and applied as standard JavaBeans component. package function, which leads to industrial standardization
completely.
Users who have some experience of using other language to
program, JavaBeans can be seen as ActiveX of Microsoft Using servlet to develop is relatively easy thanks to which
company, except that JavaBeans is platform independent and owns all merits of Java. Java simplified exception handling and
ActiveX can only be used in windows system. In a word, its OO characteristic make developer’s collaboration to be
JavaBeans can be used as software component which needs easy. The technic of JSP quickens developing of dynamic
platform independent, visualized operations and customization website depends on the following aspects: first of all, JSP uses
features. html tag to plan and design static web pages’ layout and style,
on the other hand JSP uses tags to design the dynamic web
4) EJB page, these dynamic contents are encapsulated and runs on
Enterprise JavaBeans is component model worked in the server. When we do this, the page layout and style can be
server side, which can be deployed in distributed application edited by itself, and the dynamic contents may be not impacted.
environments just as .COM from Microsoft Company, and this

1394 978-1-4244-3521-0/09/$25.00 ©2009 IEEE


Proceedings of 2009 4th International Conference on Computer Science & Education

Most JSP pages can implement complicate demands by using


JavaBeans, which is platform independent and reusability, and
these JavaBeans components can be used repeatedly by
developers. Finally, JSP uses tag to predigest development. The
developer can use JavaBeans to set and visit their attribute
easily, at the same time, JSP allows developers to define
customize tag, and JSP can accept third-part tag in order to use
component supplied by third-part Company.
IV. CONCLUSION
This paper represents the education of Java technology and
the process of realizing E-commerce system. It is very
convenient to use Java to develop E-commerce system, also,
Java realizes security and credibility in E-commerce, and of
course it has some shortages during implementation procedure.
Yet as time goes on E-commerce will be more popularize, and
this is the inevitable trend to use Java as E-commerce’
development language.
ACKNOWLEDGMENT
This paper is sponsored by Knowledge Innovation Project a
nd Intelligent Information Service and Support Project of The S
hanghai Education Commission.
REFERENCES
[1] Christian W, Java programming and Internet technologies for
undergraduate education, Computer Physics Communications, 2000,
127(1):16-22
[2] J. Meyer, T. Downing, Java Virtual Machine (O’Reilly & Associates,
Sebastopol, CA, 1997).
[3] Mahmoud QH, Practice and experience with Java in education[J],
SCIENCE OF COMPUTER PROGRAMMING, 2004, 53(1):1-2
[4] Weibin Li, Shunli Zhang, and Zongling Li, A Novel Task-Based
Teaching Strategy for Computer Majors, 2009 First International
Workshop on Education Technology and Computer Science, 2009, 1:3-6
[5] Liang Gege, Java study note [J]. Journal of Tsinghua University ,2006,
(8) :201-228.
[6] YANG Aocheng Application of EJB to enterprise E-commerce [J].
Engineering Journal of Wuhan University ,2007,40(6):139-142.
[7] Tang hui, E-commerce platform Based on open-source framework
[J],Computer Application,2006,(224):20-38.
[8] Ding Huiping, DenWei, Liao Chengzhen, E-commerce application
framework based on Java components [J]. China Management
Informationization,2005(7):43-46.
[9] WANG Fei,DING Yuan, LIN Wenchang. Design and development
of E-business system based on framework technique [J], Computer
Engineering and Design,2007,28(22):5507-5510.

978-1-4244-3521-0/09/$25.00 ©2009 IEEE 1395

You might also like