Java Networking(I) 曾俊雄. Overview Java is a very good choice for networking programming. Client : – Socket – Applet – Java Web Start – Java Network Launch.

Slides:



Advertisements
Similar presentations
웹 서비스 개요.
Advertisements

Sockets Programming Network API Socket Structures Socket Functions
Java Network Programming Vishnuvardhan.M. Dept. of Computer Science - SSBN Java Overview Object-oriented Developed with the network in mind Built-in exception.
© Amir Kirsh Java Networking Written by Amir Kirsh, Edited by Liron Blecher.
Virtual Ticketing Agents using Web Services and J2EE Advisor: Dr. Chung-E-Wang Date: 05/06/03 Naveen Repala.
CSIS0402 System Architecture K.P. Chow University of Hong Kong.
 Java  Python  Bigtable(Bt) is a distributed storage system for managing structured data that is designed to scale to a very large size.  Query Language.
Notes to the presenter. I would like to thank Jim Waldo, Jon Bostrom, and Dennis Govoni. They helped me put this presentation together for the field.
1. Introducing Java Computing  What is Java Computing?  Why Java Computing?  Enterprise Java Computing  Java and Internet Web Server.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved L22 (Chapter 25) Networking.
Course Map The Java Programming Language Basics Object-Oriented Programming Exception Handling Graphical User Interfaces and Applets Multithreading Communications.
Client-Server Communication Sockets Remote Procedure Calls Remote Method Invocation (Java)
JMS Java Message Service Instructor Professor: Charles Tappert By Student: Amr Fouda.
Introduction to Servlet & JSP
Enterprise Programming By J Pearce. Enterprise Software Sales HR Inventory Customer Support Shipping.
An Introduction to Internetworking. Algorithm for client-server communication with UDP (connectionless) A SERVER A CLIENT Create a server-socket (listener)and.
Client-server interactions in Mobile Applications.
L EC. 01: J AVA FUNDAMENTALS Fall Java Programming.
Web-based Software Development - An introduction.
EJB Overview Celsina Bignoli Distributed Business Applications Server DB Client DB Server DB.
Advanced Java New York University School of Continuing and Professional Studies.
Oracle8 JDBC Drivers Section 2. Common Features of Oracle JDBC Drivers The server-side and client-side Oracle JDBC drivers provide the same basic functionality.
4/1/2003Application Server Standards Application Server Standards for ITSS Bruce Vincent, ITSS Technology Strategist.
Enterprise Java Beans CS-422. Application Servers In the late 1980s and though the mid 1990s a number of corporations (Broadvision, Netscape…) marketed.
HTTP client wide area network (Internet) HTTP proxy HTTP server HTTP gateway firewall HTTP tunnel Copyright Springer Verlag Berlin Heidelberg 2004.
Ing. Ignacio Roqueta ARTech GeneXus and J2EE.
Enterprise Computing COSC 617 Jeff Schmitt September 7,2006.
CS 493/693: Distributed Systems Programming V. “Juggy” Jagannathan CSEE, West Virginia University March 21, 2005.
Open Web App. Purpose To explain Open Web Apps To explain Open Web Apps To demonstrate some opportunities for a small business with this technology To.
An program As a simple example of socket programming we can implement a program that sends to a remote site As a simple example of socket.
第十四章 J2EE 入门 Introduction What is J2EE ?
Enterprise Java Beans Java for the Enterprise Server-based platform for Enterprise Applications Designed for “medium-to-large scale business, enterprise-wide.
Lab 6: Introduction to Sockets (Web Programming – Part 1) Reference: Head First Java (2 nd Edition) by Kathy Sierra & Bert Bates.
CS4273: Distributed System Technologies and Programming Lecture 13: Review.
©2007 · Georges Merx and Ronald J. NormanSlide 1 Chapter 13 Java on Various Computer Platforms.
 TCP (Transport Control Protocol) is a connection-oriented protocol that provides a reliable flow of data between two computers.  TCP/IP Stack Application.
Source: Peter Eeles, Kelli Houston, and Wojtek Kozaczynsky, Building J2EE Applicationa with the Rational Unified Process, Addison Wesley, 2003 Prepared.
© Amir Kirsh Java Networking Written by Amir Kirsh.
© Lethbridge/Laganière 2005 Chap. 3: Basing Development on Reusable Technology The Client-Server Architecture A distributed system is a system in.
L 2 - 1 3( 1/ 20) : Java Network Programming. The Socket API The previous contents describe client-server interaction that application programs use when.
Introduction to Sockets “A socket is one endpoint of a two-way communication link between two programs running on the network. A socket is bound to a port.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Networking Terminology: ISP (Internet service provider) – dialup, dsl, cable LAN (local area network) IP (internet protocol) address, eg
CS 158A1 1.4 Implementing Network Software Phenomenal success of the Internet: – Computer # connected doubled every year since 1981, now approaching 200.
Internet Technologies1 Internet Technologies JavaFX.
Web Technologies Lecture 8 Server side web. Client Side vs. Server Side Web Client-side code executes on the end-user's computer, usually within a web.
Java for networking Module Introduction Data Communications Communication architecture Application.
What is J2EE Platform The Java 2 Platform Enterprise Edition (J2EE) defines the standard for developing multitier enterprise applications.
Intro to Web Services Dr. John P. Abraham UTPA. What are Web Services? Applications execute across multiple computers on a network.  The machine on which.
1 Distributed System using J2EE. 2 What is J2EE?  J2EE (Java2 Enterprise Edition) offers a suite of software specification to design, develop, assemble.
Modern Programming Language. Web Container & Web Applications Web applications are server side applications The most essential requirement.
JDBC Chapter 1 JDBC Introduction
Windows Azure poDRw_Xi3Aw.
1 RMI Russell Johnston Communications II. 2 What is RMI? Remote Method Invocation.
Interoperability Architecture for Grid Networks Monitoring Systems Need for interoperability in grid networks monitoring systems: Monitored.
Glink for Java: applet, application and an API for integrating access to Bull, IBM, UNIX and Minitel systems with your Java based e-business applications.
Networking OSI (Open Systems Interconnection) model of computer networking, seven layers (the Application, Presentation, Session, Transport, Network, Data.
The process of establishing a connection between a client and a server is called as Client – Server communication.
Java Distributed Computing
Web-based Software Development - An introduction
Client-Server Communication
Distributed Computing
Beyond HTTP Up to this point we have been dealing with software tools that run on browsers and communicate to a server that generates files that can be.
Java Socket Programming and Java RMI CS
Client server programming
Web-Services-based Systems Architecture, Design and Implementation
Computer Based Adaptive Testing
Read this to find out how the internet works!
Java Socket Programming and Java RMI CSE 291
Presentation transcript:

Java Networking(I) 曾俊雄

Overview Java is a very good choice for networking programming. Client : – Socket – Applet – Java Web Start – Java Network Launch Protocol

Overview(cont.) Server : – ServerSocket – Servlet – JSP Client & Server : – RMI – EJB – Soap – Web Service

Why Java Networking? Java is very suitable for network programming for the following reason : – Richness As previously discussed, we have many java- technologies for network programming. – Simplicity Traditionally, we use Berkerly socket for network programming, it is very complex, e.x., we will show an example to connect to network :

Why Java Networking?(cont.) family=AF_INET; connection=SOCK_STREAM; socketid=socket(family,connection,IPPROTO_TCP); struct hostent *hp; sockaddr1.sin_family=AF_INET; if(address[0]>='1' && address[0] ='0' && address[1]<='9') sockaddr1.sin_addr.s_addr=inet_addr(address); connect(socketid,(struct sockaddr *)(&sockaddr1),sizeof(sockaddr1)); With traditional socket library : With java : Socket socket=new Socket(address,port);

Why Java Networking?(cont.) – I/O functionality Java has great power in I/O , and network transmitting is just an I/O operation DataInputStream BufferedInputStream FileInputStream ByteArrayInputStream ObjectInputStream Network I/O stream

Why Java Networking?(cont.) – Naming ability There is an API called JNDI which is used for searching remote objects. This is very important for distributed computing, an important issue for network programming. – Platform independence This is also very important for distributed computing, since programs written on different platforms can co-work together easily.